-
Notifications
You must be signed in to change notification settings - Fork 8
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(Dialog)!: Prevent a focus indicator from being cut off #1879
fix(Dialog)!: Prevent a focus indicator from being cut off #1879
Conversation
Is it worth the wait for the release of correct spacing tokens? |
The space tokens are currently correct as well. And if we change them, we’ll come across the Dialog layout. So, no, let’s not wait. |
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 solves the overflow bug and I don't think it's breaking anything either.
# Conflicts: # proprietary/tokens/src/components/ams/dialog.tokens.json
d12ae33
Describe the pull request
Thank you for contributing to the project!
Please use this template to help us handle your PR smoothly.
What
This addresses #1828. It moves padding from
Dialog
down to its header, body and footer sections.Why
To prevent focus indicators at the edge of the body to become cut off. This could happen because the body is a scroll container without any padding. The browser creates a new block formatting context for it, and it can’t draw anything outside of that.
How
n/a
Checklist
Before submitting your pull request, please ensure you have done the following. Check each checkmark if you have done so or if it wasn't necessary:
Additional notes