#51223 closed defect (bug) (fixed)
Twenty Thirteen: Button block not inheriting editor colors
| Reported by: | melchoyce | Owned by: | davidbaumwald |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.8 |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
The button block is not working correctly in Twenty Thirteen. I've noticed two issues:
- Filled buttons always inherit the
shadowstyle, so the button always has a drop shadow. This happens both in the editor and on the front-end. This also happens on circular buttons. Because there is a specific button style for a filled button with a box shadow, this feels unepxected. - Outlined buttons don't inherit any colors from the editor.
Attaching screenshots to show what I mean.
Attachments (2)
Change History (15)
This ticket was mentioned in โPR #993 on โWordPress/wordpress-develop by โkjellr.
6 years ago
#1
- Keywords has-patch added
Trac ticket: https://core.trac.wordpress.org/ticket/51223
---
This PR corrects the default color of outlined buttons in the editor. Originally, these were dark gray in the editor, and orange in the front end. Now they're orange in both places.
It also adds a new optional "No Shadow" block style which allows users to hide the 3px shadow on buttons if they'd like to. This seemed like a way to sort out the issue as noted in the ticket, while not changing the appearance of buttons on existing sites running this theme.
## Screenshots
โryelle commented on โPR #993:
6 years ago
#3
This does fix the color issue on default outline buttons, but I noticed a few other issues while testing:
- In firefox, I'm seeing dark borders on the buttons (seeing this on trunk too)
- On the outline button, background colors don't show up on the frontend
- When using a custom color for an outline button, the button disappears on hover/focus
Editor:
<img width="609" alt="Screen Shot 2021-02-15 at 11 39 52 AM" src="โhttps://user-images.githubusercontent.com/541093/107972943-94ee2a00-6f82-11eb-8ae9-47cf8b1c1d03.png">
Frontend:
<img width="585" alt="Screen Shot 2021-02-15 at 11 39 42 AM" src="โhttps://user-images.githubusercontent.com/541093/107972942-94559380-6f82-11eb-852a-541d6eabd4a1.png">
I'm not sure if you want to go down the rabbit hole of getting custom colors working - I think it would be enough of an improvement to fix the borders & make the outline button color consistent.
โkjellr commented on โPR #993:
6 years ago
#4
Yeah, that's definitely going to be a rabbit hole. I suggest we tackle those issues separately.
โscruffian commented on โPR #993:
6 years ago
#5
LGTM, just one comment about i18n...
โryelle commented on โPR #993:
6 years ago
#6
@kjellr Did you also fix the border issue in Firefox? (in the screenshots above, the buttons all have dark borders)
โkjellr commented on โPR #993:
6 years ago
#7
@ryelle I can't reproduce those borders anymore โย I wonder if they were fixed elsewhere?
I did add a couple extra commits that I think fix these two issues though:
- On the outline button, background colors don't show up on the frontend
- When using a custom color for an outline button, the button disappears on hover/focus
โryelle commented on โPR #993:
6 years ago
#8
I think maybe it was fixed when โhttps://github.com/WordPress/gutenberg/issues/29149 was fixed, I'm also not seeing the issue anymore. Everything looks good ๐
#9
@
5 years ago
- Keywords commit added
- Milestone Awaiting Review โ 5.8
The PR still looks good, let's get this fix in for 5.8.
โkjellr commented on โPR #993:
4 years ago
#12
I'm not sure if this one is still valid. I'm unable to maintain it, would someone else mind adopting the PR?
โ@mukesh27 commented on โPR #993:
7 weeks ago
#13
Thanks for the PR, @kjellr!
This appears to have been addressed in r51110, which already landed. Closing this PR as resolved.
If I've missed something this PR covers that the committed fix doesn't, please reopen or comment on the ticket. Happy to take another look.



Buttons in the editor