Outline buttons have no border
-
After the recent WP 5.9 update buttons set to “outline” have no border.
Looking in the dev console, it seems the
wp-includes/css/dist/block-library/style.min.css border: 2px
is no longer taking priority over the.wp-block-button__link border: none
from the twentytwenty style.cssChanging the priority of the style enqueue in my child theme functions.php to 1 allows it to override again, but then the button font is too big.
I’m just going to copy the relevant dist css to my custom css overrides for now to, I think, return to the previous look (I checked 5.8 and the padding was not being applied so I skipped it):
.is-style-outline>:where(.wp-block-button__link), :where(.wp-block-button__link).is-style-outline { border: 2px solid; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Outline buttons have no border’ is closed to new replies.