-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add z-index to gallery fig caption to make sure it is still selectable over absolute positioned border #28992
Conversation
…bsolute positioned border.
Testing using gutenberg.run Added a gallery block. Added another gallery block. |
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.
Size Change: +39 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
As always, let's add an e2e test (in a separate PR) to prevent this issue from re-appearing! 🙂 |
Filed issue #29001 to keep track. |
Thanks all! I'll merge, and will cherry-pick to |
…bsolute positioned border. (#28992) #27312 introduced some absolute positioning to the gallery image border to fix some layout issues, but because this had a z-index specified it was sitting over the top of the caption which could no longer be selected. This PR just adds a z-index to caption also so it sits over the border. Co-authored-by: Glen Davies <glen.davies@a8c.com>
Done. |
…bsolute positioned border. (#28992) #27312 introduced some absolute positioning to the gallery image border to fix some layout issues, but because this had a z-index specified it was sitting over the top of the caption which could no longer be selected. This PR just adds a z-index to caption also so it sits over the border. Co-authored-by: Glen Davies <glen.davies@a8c.com>
Also cherry-picked to |
|
Definitely :+1 See #28992 (comment) and #29001 🙂
🤔 |
The z-index was added originally due to some specific markup in the editor view, causing the focus style to be partially cropped. I would imagine this focus style benefits from the Image block CSS once the refactor to use inneblocks lands. An E2E test that verifies that the caption is clickable should still be relevant for that refactor, but the z-index might not. |
Exactly. I meant a test for the behaviour, not the implementation. I wasn't clear. :) |
Similar case in 3741862-zd (can't edit gallery image captions). |
Similar Issue here 27774020-hc. Had them pre-enter the caption before inserting the images on the page itself as a workaround. |
…bsolute positioned border. (#28992) #27312 introduced some absolute positioning to the gallery image border to fix some layout issues, but because this had a z-index specified it was sitting over the top of the caption which could no longer be selected. This PR just adds a z-index to caption also so it sits over the border. Co-authored-by: Glen Davies <glen.davies@a8c.com>
…bsolute positioned border. (#28992) #27312 introduced some absolute positioning to the gallery image border to fix some layout issues, but because this had a z-index specified it was sitting over the top of the caption which could no longer be selected. This PR just adds a z-index to caption also so it sits over the border. Co-authored-by: Glen Davies <glen.davies@a8c.com>
Fixes: #28989
Description
#27312 introduced some absolute positioning to the gallery image border to fix some layout issues, but because this had a z-index specified it was sitting over the top of the caption which could no longer be selected.
This PR just adds a z-index to caption also so it sits over the border.
Testing
Before:
After:
Types of changes
CSS change