Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#62181 new defect (bug)

WP Admin b,strong has fixed weight of 600

Reported by: launchinteractive's profile launchinteractive Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 3.8
Component: Administration Keywords:
Focuses: css Cc:

Description (last modified by sabernhardt)

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?

Change History (2)

#1 @sabernhardt
4 months ago

  • Component changed from Text Changes to Administration
  • Description modified (diff)
  • Focuses css added
  • Version changed from 6.6.2 to 3.8

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, CSS Coding Standards instruct to use numeric values for font weight.

#2 @launchinteractive
4 months ago

ok, another solution would be to remove the CSS declaration altogether. The browser should be able to determine what bold is. What do you think?

Note: See TracTickets for help on using tickets.