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

[web] Increase the z-index of the sidebar #569

Merged
merged 2 commits into from
May 10, 2023
Merged

Conversation

dgdavid
Copy link
Contributor

@dgdavid dgdavid commented May 9, 2023

Problem

The component used for displaying the page options has a higher z-index than the Sidebar. This combined with the fact that the component it isn't closed automatically when the user clicks outside can lead to a situation of having the sidebar open but the page menu options on top.

Solution

Use a higher value for the Sidebar z-index. More specifically, the 1000 value because PatternFly uses values from 100 to 600 at the time of writing. See

Another option could be to use the PatternFly highest value, but IMHO it does not seem necessary to couple the Sidebar z-index to a PatternFly variable. At least for now.

Testing

  • Tested manually

Screenshots

Before After
Screenshot from 2023-05-09 23-23-58 Screenshot from 2023-05-09 23-23-25

@dgdavid dgdavid requested a review from imobachgs May 9, 2023 22:38
@coveralls

This comment was marked as off-topic.

@dgdavid dgdavid requested a review from ancorgs May 9, 2023 22:39
dgdavid added 2 commits May 10, 2023 11:10
To avoid other elements overlapping it. A very high value was chosen
because PatternFly uses values from 100 to 600 at the time of writing.
See [1]

Another option could be to use the PatternFly highest value, but for now
it does not seem necessary to couple the Sidebar z-index to a PatternFly
variable.

[1] https://github.com/patternfly/patternfly/blob/7ddc2de5cfb96f204e62730878a9e77bed64b998/src/patternfly/sass-utilities/scss-variables.scss#L154-L160
@dgdavid dgdavid force-pushed the fix-sidebar-z-index branch from 651195b to a25ac3e Compare May 10, 2023 10:11
Copy link
Contributor

@joseivanlopez joseivanlopez left a comment

Choose a reason for hiding this comment

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

LGTM

@dgdavid dgdavid merged commit c3ae9ba into master May 10, 2023
@dgdavid dgdavid deleted the fix-sidebar-z-index branch May 10, 2023 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants