[wp-trac] [WordPress Trac] #53115: Twenty Twenty: number inputs have too much padding
WordPress Trac
noreply at wordpress.org
Wed Jun 2 22:02:01 UTC 2021
#53115: Twenty Twenty: number inputs have too much padding
----------------------------+--------------------------
Reporter: helgatheviking | Owner: sabernhardt
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 5.8
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: css
----------------------------+--------------------------
Changes (by sabernhardt):
* owner: (none) => sabernhardt
* status: new => accepted
Comment:
@helgatheviking Thanks for the patch! That works for me, both with the
WooCommerce quantity inputs and with a number input within a Custom HTML
block. (Yes, the padding adjustment belongs on the other side for RTL
because the increment buttons are on the opposite side.)
I tested on Windows browsers: Firefox, Chrome, Edge, Opera, Vivaldi
For consistency, though, it would be good to add a zero before the decimal
for these values within both stylesheets:
{{{
input[type="number"] {
padding-right: 0.5rem;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53115#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list