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

Everett Zufelt’s picture

Component: Code » User interface
Category: feature » bug

Defining 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:

Resize text: Except for
captions and images of text, text can be resized without assistive technology up to 200 percent without loss of content or functionality. (Level AA)

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.

Everett Zufelt’s picture

Title: px vs. em » Use of relative font sizes for improved accessibility
jyve’s picture

The 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.

Everett Zufelt’s picture

@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

nonprofit’s picture

@Jyve, looks like a great solution to me. Thanks!

jyve’s picture

Status: Active » Closed (fixed)

Bad 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.