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

Improve absurd z-index values; put notices back under flyout menus #1884

Merged
merged 1 commit into from
Jul 14, 2017

Conversation

nylen
Copy link
Member

@nylen nylen commented Jul 13, 2017

Re-roll of #1630.

Follow-up to #1437 and #1691.

When we have to add large z-index values, we should leave comments explaining why. We should also make sure we understand how the various z-index rules relate to each other, and ensure that the values we add are as large as necessary but no larger.

Conflicts:
	editor/assets/stylesheets/_z-index.scss
@nylen
Copy link
Member Author

nylen commented Jul 13, 2017

Element Behavior before this PR Behavior after this PR
Notices 2017-07-13t17 45 14 0200 2017-07-13t17 48 03 0200
Popovers 2017-07-13t17 46 05 0200 (no change)

This PR fixes z-index issues with notices, but not with popovers. This is a bit more tricky and needs some design attention. We can change the popover z-index value to 9989 to make them show below the admin menus, but I don't think it's the right solution because this breaks other things:

@nylen nylen requested a review from mtias July 13, 2017 15:51
@nylen nylen added the Needs Design Needs design efforts. label Jul 13, 2017
@aaronjorbin
Copy link
Member

A related change from WordPress Core: https://core.trac.wordpress.org/changeset/24753

@mtias
Copy link
Member

mtias commented Jul 14, 2017

This PR fixes z-index issues with notices, but not with popovers.

Yes, it looks like this should be fixed at the layout level for that breakpoint. cc @jasmussen

@nylen nylen changed the title Clarify and update absurd z-index values Improve absurd z-index values; put notices back under flyout menus Jul 14, 2017
@nylen nylen merged commit 9def798 into master Jul 14, 2017
@nylen nylen deleted the update/absurd-z-indices branch July 14, 2017 12:55
@nylen
Copy link
Member Author

nylen commented Jul 14, 2017

Created an issue for the buggy popover behavior at #1901.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Design Needs design efforts.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants