Open ice-blaze opened 1 year ago
Same comment could be applied to buttons text, they aren't impacted by the browser font size.
Or maybe text shouldn't be impacted by browser font size. Which maybe will be a legacy feature.
For button (and most components) it depends what units you use for your font sizes. define-typography-config()
will generate a typography config with sizes in px
units which are not affected by the browser setting. define-rem-typography-config()
will create a typography config with sizes in rem
units which are affected and should cause font sizes to scale.
The badge seems to be hardcoded in px
though, regardless of the typography config used, so that is an issue.
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When you change the size of the font through the browser settings. The badges remain the same size.
Comparison images: small large chrome option
Reproduction
Steps to reproduce:
Expected Behavior
I have a feeling the badges should follow the size of the font.
Actual Behavior
Badges font remain unchanged between very small or very large font option.
Environment