-
Notifications
You must be signed in to change notification settings - Fork 536
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
fix: Don’t clip 'ConfirmationDialog' button outlines #1203
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/primer/primer-components/8vqXLpbL7zft9UKFqBeU34ovaQzM |
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.
Nice fix, looks so much better!!
button:not(:first-of-type):not(:last-of-type) { | ||
border-radius: 0; | ||
} |
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.
Great coverage here for all cases except button:first-of-type:last-of-type
if there is only 1 button. If we are assuming there will always be exactly 2 buttons, then this last section can be removed.
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.
Oh interesting, great catch! I hadn’t considered a ConfirmationDialog
with only one button. I’ll update this on Monday. 👍
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.
Fixed in b2bdb66!
Before | After |
---|---|
Fixes https://github.com/github/primer/issues/129
Previously
Dialog
hadoverflow: hidden
, which caused focus rings to clip. This PR removesoverflow: hidden
, then updates theborder-radius
ofConfirmationDialog
buttons to follow the curvature of their container.