You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Default button styles are broken when there are no editor styles provided #21561
(also can confirm @carolinan 's issue as well; but I've been experiencing it after rebuilding Gutenberg from master last week; I just thought it was my slower computer ;p)
Activity
kjellr commentedon Apr 13, 2020
cc @youknowriad could this be related to #21266?
paaljoachim commentedon Apr 13, 2020
Testing using the Gutenberg Starter theme: https://github.com/WordPress/gutenberg-starter-theme
Local site using Desktop Server.
Chrome
WordPress 5.4
First I tested with using Gutenberg version 7.8.1.
Button block showed up.
Testing Gutenberg version 7.9.0-rc.1.
I am getting the same result as Kjell did further above.
Result:
Selected button:

Selected button block:

Non selected button block:
Does not show button.
skorasaurus commentedon Apr 13, 2020
can confirm using a build from c3798f1
(also can confirm @carolinan 's issue as well; but I've been experiencing it after rebuilding Gutenberg from master last week; I just thought it was my slower computer ;p)
carolinan commentedon Apr 13, 2020
I am also experiencing a delay when typing the button text, both with and without editor styles, that does not happen with 7.8.
Win 10, WordPress 5.4, 7.9.0 RC 1, Chrome Version 81.0.4044.92,
mapk commentedon Apr 13, 2020
I can also confirm this bug using:
Gutenberg 7.8
Twenty Nineteen theme
jffng commentedon Apr 13, 2020
Looks like if
--wp--color-textis not set, the button text fallbacks to white:gutenberg/packages/block-library/src/button/style.scss
Lines 27 to 32 in c3798f1
youknowriad commentedon Apr 13, 2020
Missed that variable, it should just be removed.