-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
Backwards CompatibilityIssues or PRs that impact backwards compatabilityIssues or PRs that impact backwards compatability[Block] ImageAffects the Image BlockAffects the Image Block[Feature] ThemesQuestions or issues with incorporating or styling blocks in a theme.Questions or issues with incorporating or styling blocks in a theme.[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
Enabling Lightbox on an image block adds a button element to click on the image and an element to close the Lightbox.
Many themes, especially classic themes, apply styles to the button element, which causes unintended styles to be applied to the two buttons in the Lightbox.
Below is examples:
- Twenty Twenty One:
- If you do not hover over the image, the image will be covered in dark blue
- Close lightbox button has black background
- Twenty Nineteen:
- The image turns black when you hover the mouse over it
- Close lightbox button has black background
I think we need a minimal style to override the theme's styles.
Step-by-step reproduction instructions
N/A
Screenshots, screen recording, code snippet
Note: Warning messages displayed in screencasts are reported with #54930.
e4964c058c8b00cd3bdebd9d9b8c3377.mp4
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Metadata
Metadata
Assignees
Labels
Backwards CompatibilityIssues or PRs that impact backwards compatabilityIssues or PRs that impact backwards compatability[Block] ImageAffects the Image BlockAffects the Image Block[Feature] ThemesQuestions or issues with incorporating or styling blocks in a theme.Questions or issues with incorporating or styling blocks in a theme.[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended