Closed (fixed)
Project:
Sweaver
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2010 at 13:57 UTC
Updated:
6 Aug 2010 at 10:31 UTC
Sweaver looks great, thanks much for a wonderful module!
Currently font-size is assigned in pixles although using em's would improve IE accessibility.
-NP
Comments
Comment #1
Everett Zufelt commentedDefining fonts in pixels is not necessarily a problem only for IE. The W3C's Web Content Accessibility Guidelines 2.0 (WCAG 2.0) have a success criteria for text resizing, which generally require that font sizes be set in percentages or ems.
WCAG 2.0 success criteria 1.4.4:
Ensuring that text can be resized without the use of assistive technology helps to ensure that a module is optimally usable by the broadest possible audience.
Comment #2
Everett Zufelt commentedComment #3
jyve commentedThe em/px issue is more a technical issue at the moment. Sweaver basically reads the font-size defined in a theme. At the moment we force the font-size back to pixels, but we could try and see if we can leave the font-size in ems if that is the definition in the existing css.
Comment #4
Everett Zufelt commented@Jyve
Sounds like a good plan. You can't be expected to correct this problem if present in the teme, but it would be nice not to convert a themes existing em / % sized fonts to px.
Thanks for the quick response
Comment #5
nonprofit commented@Jyve, looks like a great solution to me. Thanks!
Comment #6
jyve commentedBad news. I tried all kinds of solutions, but unfortunately jQuery (heavily used in Sweaver) always returns a computed value, meaning that if I say that an element is 2em high, jQuery will still return 24px for example. There is no way to know that a relative value was given in css.
That means that this request cannot be implemented.