Make WordPress Core

Opened 7 years ago

Closed 7 months ago

#7296 closed defect (bug) (wontfix)

Admin CSS uses px instead of em

Reported by: noel Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Administration Keywords:
Focuses: ui, accessibility Cc:


There are quite a few places where we could be using ems instead of pixels for font sizes. Support has a ticket wondering why we took this route. Despite pixels being fine in most browsers, IE botches them and doesn't let you resize them!

Best practice: http://alistapart.com/articles/howtosizetextincss

Change History (7)

#1 @matt
7 years ago

  • Resolution set to invalid
  • Status changed from new to closed

No momentum or patches here, closing, but open to a new ticket for new design.

#2 @jacobsantos
7 years ago

  • Milestone 2.7 deleted

#3 @GrahamArmfield
21 months ago

  • Focuses accessibility added
  • Resolution invalid deleted
  • Severity changed from minor to normal
  • Status changed from closed to reopened
  • Type changed from enhancement to defect (bug)

Whilst this is an old ticket it is still true in the new 'MP6' admin introduced in 3.8. I have tested it in Internet Explorer 10 on a Windows 7 machine, and it's impossible to change the font size in any of the admin screens.

In IE to change just the text size go to View -> Text size.

This is important for people with poor eyesight who wish to enlarge the text, but not to zoom - which makes everything bigger, but introduces horizontal scroll bars.

#4 @SergeyBiryukov
21 months ago

  • Component changed from General to Administration
  • Focuses ui added
  • Milestone set to Awaiting Review

#5 @afercia
7 months ago

Wondering if it's time to start using root em (rem) with a fallback to pixels. Maybe worth considering for the CSS clean up roadmap. cc @helen :)

#6 @nikolov.tmw
7 months ago

Just chiming in to say that I'd volunteer as a tribute to help out with this one. I imagine that there would be a significant amount of work involved in that endeavour, so I'd be happy to give a helping hand.

If rem + px will be the road we take, then I can start slowly converting things one by one.

Last edited 7 months ago by nikolov.tmw (previous) (diff)

#7 @helen
7 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from reopened to closed

I don't think this is a ticket that needs to stay open - we can discuss sizing strategies as a part of the ongoing clean up and modernization effort, but there's no single way of addressing this and it's not particularly useful for tracking, either. FWIW, I don't believe that a single blanket usage of one sizing unit is the right way to go, either. It all depends on the context of how things are built and what exactly is being sized.

Note: See TracTickets for help on using tickets.