-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qoldev 339 outline hovering underline #866
Qoldev 339 outline hovering underline #866
Conversation
I had to update this PR as the pb: 3px was impacting other links like nav items. The issue was caused because the standard links did not have any height applied to them. By assigning display value they would. This change also fixes https://ssq-qol.atlassian.net/browse/QOLDEV-322 (The logo outline issue in Safari) |
@@ -19,6 +19,7 @@ | |||
// &.hover { | |||
// background: none; | |||
// } | |||
display: inline-block; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be applied globally. It has side effects on line spacing and wrapping.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think increasing line heights is inevitable to fix this issue, because the style lacks some vertical spacing to fit in both outline and underline. I excluded digital dashboard from the change.
The impact on multi-line links looks like this: Before: After: I agree it is different, but does not look broken. I can ask Bec's opinion as well. Such change would fix the outline for the logo in FireFox and Safari as well: I also noticed other in the system that did not have this issue (outline covering underline), already have display: inline-block, like nav items and qg-index-item. https://www.qld.gov.au/disability/legal-and-rights/advocacy I checked Carl's PR, .pagination and .graph were excluded. I tested pagination has it's own class (page-link) to apply display: block to . I excluded #ict-tabcontainer a from the added style. |
In links it is noticeable that it is rendered something in the middle, so not exactly covered, and not spaced enough. https://www.qld.gov.au/search?query=test&num_ranks=10&tiers=off&collection=qld-gov&profile=qld |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restricting inline-block with a blacklist isn't enough. It shouldn't be the default.
Closing the PR. This change needs to be done after reviewing font sizes by Bec. We can do this by using styles like |
https://ssq-qol.atlassian.net/browse/QOLDEV-339
Before:
After: