Skip to content
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

Adding outline to invisible buttons and close button #1510

Merged
merged 2 commits into from Jul 20, 2021
Merged

Conversation

jonrohan
Copy link
Member

Fixes #1213

I'm adding focus outlines to the .btn-invisible and .close-button for better a11y. Currently there's no outline https://primer.style/css/components/buttons#close-button

Screen Shot 2021-07-20 at 9 05 15 AM

Screen Shot 2021-07-20 at 9 05 29 AM

@changeset-bot
Copy link

changeset-bot bot commented Jul 20, 2021

🦋 Changeset detected

Latest commit: 0cf3521

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/css Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jonrohan jonrohan enabled auto-merge (squash) July 20, 2021 17:11
@jonrohan jonrohan requested a review from simurai July 20, 2021 23:10
Copy link
Contributor

@simurai simurai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

I guess at some point we could start looking into :focus-visible so that the focus style doesn't show up when using the mouse. On dotcom we have JS that prevents it. I guess another mini-project. 😅

@jonrohan jonrohan merged commit d1ea5c2 into main Jul 20, 2021
@jonrohan jonrohan deleted the focus_outline branch July 20, 2021 23:16
@primer-css primer-css mentioned this pull request Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Focus outlines on Invisible & Close buttons
2 participants