Opened 6 years ago
Closed 3 years ago
#49892 closed defect (bug) (fixed)
Twenty Sixteen: Gutenberg Button block do not overwrite theme style
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 6.0 | Priority: | normal |
| Severity: | normal | Version: | 5.4 |
| Component: | Bundled Theme | Keywords: | has-screenshots |
| Focuses: | css | Cc: |
Description
CSS style from: wp-block-library-theme | wp-includes/css/dist/block-library/theme.min.css
.entry-content .wp-block-button__link {
background: #1a1a1a;
color: #fff;
}
CSS style from: twentysixteen-block-style | wp-content/themes/twentysixteen/css/blocks.css
:root .has-vivid-cyan-blue-to-vivid-purple-gradient-background {
~~background: linear-gradient(135deg,#0693e3,#9b51e0);~~
}
Example:
Attachments (2)
Change History (5)
#2
@
4 years ago
- Keywords needs-patch added; 2nd-opinion removed
- Milestone changed from Awaiting Review to Future Release
Welcome and thanks for the report!
Yes, .entry-content .wp-block-button__link overrides the gradient backgrounds from the editor stylesheet (when the block is in the post content).
r44200 switched the background and text color styles from .wp-block-button .wp-block-button__link to .entry-content .wp-block-button__link within blocks.css.
I think reducing that selector to .wp-block-button__link might be better.
Note: See
TracTickets for help on using
tickets.
Before