Repository navigation
Modal: Inline header z-index #78362
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
Modal: Inline header z-index #78362
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -200,7 +200,8 @@ | |
| align-items: center; | ||
| height: $header-height + $grid-unit-10; // 72px | ||
| width: 100%; | ||
| z-index: z-index(".components-modal__header"); | ||
| // Stack above modal content that may overlap the header. | ||
| z-index: 10; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This value looks arbitrary and no specific reasoning is given in the original PR that introduced it. However, given how long this specific value has been around (seven years), and how consumers very often override modal styles using internal classes, there are definitely cases where changing the value could cause a regression. Since we have a cleaner replacement in the pipeline ( |
||
| position: absolute; | ||
| top: 0; | ||
| left: 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.
This value looks high enough to seem like it's participating in some kind of global coordination, but its parent stacking context is within the
Modalcomponent (.components-modal__frame), so it's not a global concern.