primer / view_components

ViewComponents for the Primer Design System
https://primer.style/components/
MIT License
476 stars 116 forks source link

Link underlines are rendered on hover even when underline:false is specified #2277

Closed lesliecdubs closed 1 year ago

lesliecdubs commented 1 year ago

@camertron This has resulted in underlines being rendered on hover when underline:false is set. Before the .no-underline class would prevent underline on hover as well.

Screenshot 2023-10-04 at 6 01 51 PM

_Originally posted by @kintner in https://github.com/primer/view_components/issues/2249#issuecomment-1747876835_

github-actions[bot] commented 1 year ago

Uh oh! @lesliecdubs, the image you shared is missing helpful alt text. Check your issue body.

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

github-actions[bot] commented 1 year ago

Uh oh! @lesliecdubs, the image you shared is missing helpful alt text. Check your issue body.

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

kintner commented 1 year ago

I'm wondering if we should just add .no-underline to our links to fix this...

lesliecdubs commented 1 year ago

Notes from PVC sync:

I think we could use some Primer Design input on whether this is the preferred behavior for underlines on links or not.

tallys commented 1 year ago

Let's discuss this at an upcoming patterns meeting, also cc @lukasoppermann and @ericwbailey

camertron commented 1 year ago

I can provide some context on this. We decided to allow no underline on links, but always underline links on hover. My understanding is that links are more accessible when they are distinguished visually by more than just color alone.

jonrohan commented 1 year ago

@kintner After discussing in the primer patterns meeting, the recommended fix here is to replace these 2 links with Button components with the invisible scheme https://view-components-storybook.eastus.cloudapp.azure.com/view-components/lookbook/inspect/primer/beta/button/leading_visual