Closed zaguiini closed 2 years ago
Hey @zaguiini thanks for the report. The theme doesn't provide any styles for input elements — the styles you're seeing applied to the input buttons are coming by Gutenberg.
I think there are two possible routes for your issue here:
Since we don't plan on adding theme-specific input styles to Twenty Twenty-Two, I'm going to close this issue here. Thank you for the report!
(Additionally: In the future, when posting an issue to a WordPress.org community repository like this one, please be sure to only include test instructions that all contributors can use. Your test script here is tied to WordPress.com, which isn't going to be relevant to most WordPress contributors. Thanks!)
Additional context We're missing a couple of style overrides on the Button block ...
By the way, I tried this out, but unfortunately that width
rule gets inherited by the "Outline" border style, which means it has no outline by default. 😅 And since the button block doesn't have a "width" control for the border at the moment, there's no way to override it. So it's a close fix, but not viable at the moment!
Describe the bug
Buttons that are
a
tags do not have borders, however, buttons that are actual buttons (such asbutton
andinput type="submit/reset"
) do have the default browser border.Expected behavior
Visual consistency between all sorts of buttons:
<a />
;<button />
;<input type="submit" />
;<input type="reset" />
.Screenshots
Steps To Reproduce
wp theme activate pub/twentytwentytwo --url=<site-url>
;Poll
block and some answers;Verify that buttons are different.
You can also inject this snippet in your local copy:
Additional context
We're missing a couple of style overrides on the
Button
block:Applying that patch to
theme.json
make all variations look exactly the same: