Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description 📄
The Snackbar in the web version had a fixed z-index value (of 100). If there is in the document any other fixed or absolute positioned element with a higher z-index, the snackbar is shown below it.
To avoid this, it is possible to calculate the z-index when the element is rendered traversing the document's nodes, checking the z-index of each one and returning the max value.
Just to keep the old behavior and guarantee a high value for the property, the minimum value will be 100.
[Enter the description of your changes]
Platforms 📲
Type of change 🔍
How Has This Been Tested? 🧪
Through the browser, creating a div with a high z-index value (200) in the .mdx
Checklist: 🔍
Screenshots 📸
Old behaviour:
Div with z-index greater than 100m snackbar is below.
New behaviour: