[wp-trac] [WordPress Trac] #62181: WP Admin b, strong has fixed weight of 600
WordPress Trac
noreply at wordpress.org
Mon Oct 7 04:54:58 UTC 2024
#62181: WP Admin b,strong has fixed weight of 600
-------------------------------+------------------------------
Reporter: launchinteractive | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.8
Severity: minor | Resolution:
Keywords: | Focuses: css
-------------------------------+------------------------------
Changes (by sabernhardt):
* focuses: => css
* component: Text Changes => Administration
* version: 6.6.2 => 3.8
Old description:
> I've noticed that the wordpress admin has a fixed weight of 600 for b and
> strong tags. If I have a heading that has a bold appearance and then bold
> some text in the heading it doesn't become visible because all the text
> is set to 600.
>
> A simple solution would be to change the strong,b{font-weight:600;} in
> common.css to strong,b{font-weight:stronger;} and let the browser choose
> the bolder weight.
>
> I can create a patch for this, but I wanted to check if there is a reason
> why there is a fixed weight of 600. Does anyone know why?
New description:
I've noticed that the WordPress admin has a fixed weight of `600` for `b`
and `strong` tags. If I have a heading that has a bold appearance and then
bold some text in the heading it doesn't become visible because all the
text is set to `600`.
A simple solution would be to change the `strong,b{font-weight:600;}` in
`common.css` to `strong,b{font-weight:stronger;}` and let the browser
choose the bolder weight.
I can create a patch for this, but I wanted to check if there is a reason
why there is a fixed weight of `600`. Does anyone know why?
--
Comment:
Hi and thanks for the report!
The `font-weight` of `600` was added for `strong` and `b` elements in
[26072], when the font was Open Sans.
Also, [https://developer.wordpress.org/coding-standards/wordpress-coding-
standards/css/#values CSS Coding Standards] instruct to use numeric values
for font weight.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62181#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list