-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Media Library: fix elevation visual bug in search icon #11836
Conversation
Design wise 👍 |
66fce78
to
2474f28
Compare
@retrofox This PR needs a rebase |
@@ -188,6 +188,9 @@ $z-layers: ( | |||
'.media-library__list-item-spinner': 20, | |||
'.media-library__list-item-edit': 20 | |||
), | |||
'.media-library': ( | |||
'.section-nav .search.is-expanded-to-container': 20, |
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.
Just fyi that you can use this Chrome extension to figure out the parent context https://chrome.google.com/webstore/detail/z-context/jigamimbjojkdgnlldajknogfgncplbh
So a few things here:
- The parent stacking context is
.section-nav
to make this more explicit for the media library I'd recommend using:
'.media-library .section-nav': ( '.search.is-expanded-to-container' : 1,
- Why is this value 20? It doesn't appear like we need to beat any other items in the current stacking context so I think 1 works here just fine. Let me know if you had some corner cases in mind.
As an aside, we also have a z-index on the search icon, but it does nothing since the position is static.
Let's rebase this one @retrofox |
46f3a27
to
f123af6
Compare
f123af6
to
10d4f43
Compare
awesome
👍
I tested with values less than 20 and it overlapped the media library header. Tested with 1 and it works ok.
yeah, right. I wonder why we are keeing this value. rebased and tested |
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.
Thanks @retrofox Let's
IMPORTANT
try/media-section-v2
.Testing:
http://calypso.localhost:3000/media/<site>
. You should have enough media files to be able to make scrolling up on the media page.search-icon
and theplan-storage
components with the filters bar of the media library.