-
Notifications
You must be signed in to change notification settings - Fork 19
A11y fix sufficient text contrast #1744
A11y fix sufficient text contrast #1744
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
src/components/OcBreadcrumb.vue
Outdated
} | ||
|
||
> li a:hover, | ||
> li span:hover, | ||
> li button:hover { | ||
color: var(--oc-color-swatch-primary-default); | ||
color: var(--oc-color-text-default); | ||
text-decoration: underline; |
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 would also set a hover for a span
element. Not sure if we want this, what was the idea behind it?
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 was already implemented, I just changed the color reference to meet a11y requirements. I also added an underline on hover which was not requested, but makes it a bit more obvious it's a clickable link. No problem to remove it again! 🙂
The last span
element inside a li
element will have no text decoration or any other hover effect, see line 147 in the same file.
4749f9d
to
746c985
Compare
feat(color): higher contrast ratio on hover
style(oc-text): switched to same color group Remove underline from breadcrumb hover adjustments
746c985
to
f9dcde1
Compare
Pretty sure the linked issue needs further adjustments around the "New" button, but merged this one for now |
Description
Higher contrast ratio for certain links and buttons.
Related Issue
How Has This Been Tested?
Types of changes
Checklist: