[theme-reviewers] 'accessibility-ready' tag

Joe Dolson design at joedolson.com
Sun Jan 12 22:52:14 UTC 2014


1) as i understand there is no need to add an :active pseudo class to links
which got a :focus (Bootstrap only supports > ie8)

Yes, that's correct.

2) on your review you wrote some useful thing about contrast. btw nice
tool: https://www.joedolson.com/tools/color-contrast-compare.php
a) in my navbar i don't like text-decoration (underliner) links, but
changing its background color will have the same effect? If so will there
be any difficulty with using the same color combination for the hover /
focus and active (current page set by css class and not the :active pseudo
class) state.

 If you use background color only, it will achieve the same effect, but
only if the contrast difference between the static and :hover/:focus states
meets WCAG contrast guidelines.

And yes, it's perfectly acceptable to have the same color combination for
hover, focus, and active states; although the active tab should have a
different hover/focus than the other, so that change is perceivable.

3) i found twentyfourteen using:
<div class="search-toggle">
<a href="#search-container" class="screen-reader-text">
Zoeken</a>
</div>
Why does the href here go to "#search-container (a div) and not directly to
the input?
Will this link be useful in terms of accessibility at all or is it only
used here cause the search is hidden by default?

The important thing about that href is that it moves the focus to the
search box if JS is not enabled. It doesn't matter particularly whether it
goes to the container or to the input; that's a marginal difference. The
link is only necessary because the search is hidden; otherwise there's no
purpose for a toggle there. It doesn't matter whether the search is hidden
by default; if the search can be hidden, it's necessary to make sure that
it can be opened again.

4) my theme is intend to be used as starters theme. This mean user will
change the colors after installing in most cases (or define a child theme
with different color settings).
If i have found out how to, see:
http://wordpress.stackexchange.com/questions/129479/alternatives-to-handle-customizer-settings
i
will define default colors for my theme which meets the contrast
requirements. Howto handle the color changes made by users? Will adding a
warning in the README enough to fix this?

The reason that the tag is labeled 'accessibility-ready' is that we
understand that the best you can do, as a theme author, is provide
something that is accessible out of the box; what the user does from that
point is pretty much out of your control. Adding a warning to the readme
would be great.

If you wanted to, you could probably write a script that checked
contrasting custom colors defined by the user and returned a warning if
they fell outside the WCAG contrast guidelines. It wouldn't be difficult --
I can provide the code for comparing the two colors, if you want it. I
wrote a plug-in for myself a while ago that provides comparison of two
colors via a shortcode, and it wouldn't be difficult to adapt it into a
settings check in a theme.

5) if my page have 2 sidebars and both have aside will there be a problem
if both got  role="complementary"

No, it's perfectly acceptable to have multiple complementary role regions.
Technically, HTML5 automatically reports any <aside> element as having
role=complementary; but this is very poorly supported by screen readers, so
adding the ARIA role is still necessary.

6) beside the copyright my theme define footer columns (widget) they are
inside the footer -tag now. footer columns can contain text, address,
social media links, recent comments etc.
should the complete footer got  role="contentinfo" in this case?

That's probably what I would go with, so yes.

Best,
Joe


On Sun, Jan 12, 2014 at 4:22 PM, Bass Jobsen <bass at w3masters.nl> wrote:

> Hi Joe,
>
> Thanks you or your response and review!
>
> There are two different types of text that might be hidden for screen
>> readers: text that is only ever of use to screen readers, and text that may
>> be of use to other users. Skiplinks usually fall into the latter category,
>> because those links are also of use to users who are keyboard-dependent,
>> but do not have a visual disability. For those types of links, you need to
>> bring them into site when they receive keyboard focus. This is required to
>> meet the WP accessibility-ready guidelines. For hiding, you can use either
>> set of styles; they're essentially equal.
>>
>
> Okay, i understand. Bootstrap doesn't seems to have the option to make
> screen readers' text visible on focus, see also:
> https://github.com/twbs/bootstrap/issues/12199
> But i can switch to theme twentyfourteen's css classes for now.
>
>
>> Whether using an H1 breaks the structure is highly dependent on many
>> factors. If the site is using the HTML5 heading model, which expressly
>> allows multiple H1 headers, then it's fine, as long as it's in a new
>> section container. It's legitimate, but in practice, the HTML5 headline
>> outline algorithms are incredibly poor, so it's not the best possible
>> choice.
>>
>
> Well maybe it is right to wrapped them in a h1 then. Thanks for your
> explanation.
>
> Some other questions if you allow me:
>
> 1) as i understand there is no need to add an :active pseudo class to
> links which got a :focus (Bootstrap only supports > ie8)
> 2) on your review you wrote some useful thing about contrast. btw nice
> tool: https://www.joedolson.com/tools/color-contrast-compare.php
> a) in my navbar i don't like text-decoration (underliner) links, but
> changing its background color will have the same effect? If so will there
> be any difficulty with using the same color combination for the hover /
> focus and active (current page set by css class and not the :active pseudo
> class) state.
> 3) i found twentyfourteen using:
> <div class="search-toggle">
> <a href="#search-container" class="screen-reader-text">Zoeken</a>
> </div>
> Why does the href here go to "#search-container (a div) and not directly
> to the input?
> Will this link be useful in terms of accessibility at all or is it only
> used here cause the search is hidden by default?
> 4) my theme is intend to be used as starters theme. This mean user will
> change the colors after installing in most cases (or define a child theme
> with different color settings).
> If i have found out how to, see:
> http://wordpress.stackexchange.com/questions/129479/alternatives-to-handle-customizer-settings i
> will define default colors for my theme which meets the contrast
> requirements. Howto handle the color changes made by users? Will adding a
> warning in the README enough to fix this?
> 5) if my page have 2 sidebars and both have aside will there be a problem
> if both got  role="complementary"
> 6) beside the copyright my theme define footer columns (widget) they are
> inside the footer -tag now. footer columns can contain text, address,
> social media links, recent comments etc.
> should the complete footer got  role="contentinfo" in this case?
>
> Thanks so far and regards.
>
> Bass
>
>
>
>
>>
>> Best,
>> Joe
>>
>>
>> On Sat, Jan 11, 2014 at 10:15 AM, Joe Dolson <joe at joedolson.com> wrote:
>>
>>> There are two different types of text that might be hidden for screen
>>> readers: text that is only ever of use to screen readers, and text that may
>>> be of use to other users. Skiplinks usually fall into the latter category,
>>> because those links are also of use to users who are keyboard-dependent,
>>> but do not have a visual disability. For those types of links, you need to
>>> bring them into site when they receive keyboard focus. This is required to
>>> meet the WP accessibility-ready guidelines. For hiding, you can use either
>>> set of styles; they're essentially equal.
>>>
>>> For some other text - like form labels - it's acceptable to hide them so
>>> that they're only available for screen readers.
>>>
>>> Wrapping headers in a screen-reader class means that those headers are
>>> available to screen readers to use for navigation, but not visible to other
>>> users. Screen readers can generate navigation tools for users based on the
>>> headings and heading structure for the page, but for design purposes, it
>>> may not be useful or necessary to have those headings. Thus, you can hide
>>> headings so that they're only useful for screen readers but don't interfere
>>> with your design.
>>>
>>> Whether using an H1 breaks the structure is highly dependent on many
>>> factors. If the site is using the HTML5 heading model, which expressly
>>> allows multiple H1 headers, then it's fine, as long as it's in a new
>>> section container. It's legitimate, but in practice, the HTML5 headline
>>> outline algorithms are incredibly poor, so it's not the best possible
>>> choice.
>>>
>>> Best,
>>> Joe
>>>
>>>
>>>
>>> On Fri, Jan 10, 2014 at 7:12 PM, Bass Jobsen <bass at w3masters.nl> wrote:
>>>
>>>> Hi Joe,
>>>>
>>>> I'm still trying to get  'accessibility-ready' tag  for my theme.
>>>> I had to fix other issues first. Today i found i also have to fix for
>>>> accessibility. So i add the "skip links system" first (available on github
>>>> now https://github.com/bassjobsen/jamedo-bootstrap-start-theme).
>>>>
>>>> Doing this not all was clear for me. I got two questions:
>>>>
>>>> 1) I check twentyfourteen and found the .screen-reader-text class to
>>>> hide content for non-screen-readers. This class is short and has a longer
>>>> focus pseudo class.
>>>> Bootstrap has it own class (.sr-only) to do the same.
>>>> Both classes do the same but their implementation differs. For example
>>>> the sr-only don't has a focus at all.
>>>> Which one should i use or prefer? I why?
>>>>
>>>> 2) also in twentyfourteen i found some readreaders' navigation text
>>>> wrapped in h1. like
>>>> <h1 class="screen-reader-text"><?php _e( 'Comment navigation',
>>>> 'twentyfourteen' ); ?></h1>
>>>>
>>>> I wonder if choosing a header and especialy a h1 won't break the
>>>> hierarchical header structure which also is an  accessibility aspect.
>>>>
>>>> Thanks and best regards,
>>>>
>>>> Bass
>>>>
>>>> 2013/12/12 Joe Dolson <design at joedolson.com>
>>>>
>>>>> Hi, Bass - if you want to contact me off-list, feel free (
>>>>> joe at joedolson.com); but I'll answer this message on list here.
>>>>> Whether this is on-topic or not is hard to gauge. But I'm sure somebody
>>>>> will let me know!
>>>>>
>>>>> We haven't provided extensive options on the accessibility page
>>>>> because, frankly, it was already pretty lengthy, and it could easily become
>>>>> book-length. Since this is the first time these guidelines are going to be
>>>>> getting used, they will undoubtedly be tweaked in the coming months so that
>>>>> they are more friendly to those who use them!
>>>>>
>>>>> So, first: display: none;
>>>>>
>>>>> Yes, display:none; removes the hidden items from what a screen reader
>>>>> will provide. This isn't necessarily a problem, as long as a method is
>>>>> provided that brings it back into view, and which shares that information
>>>>> with screen readers. Using display:none, in itself, won't prevent your
>>>>> theme from meeting the accessibility-ready requirements, but the hidden
>>>>> resources need to have a specific method of bringing them back to focus.
>>>>> With a menu, that means something that you activate which focuses the menu.
>>>>> The menu parent should have an attribute of aria-live='polite' so that when
>>>>> the children are brought back into the DOM, screen reader's will announce
>>>>> the presence of the menu.
>>>>>
>>>>> I haven't done a thorough study of the BootStrap menus; but I think
>>>>> that's probably due, and will undoubtedly come up repeatedly in the next
>>>>> few months. Based on a quick test right now of BootStrap's demo (
>>>>> http://getbootstrap.com/javascript/#dropdowns), they appear to be
>>>>> accessible.
>>>>>
>>>>> But with accessibility, it's always necessary to do reviews of an
>>>>> actual implementation: one implementation being accessible does not mean
>>>>> that another will be.
>>>>>
>>>>> Best,
>>>>> Joe
>>>>>
>>>>>
>>>>> On Wed, Dec 11, 2013 at 5:31 PM, Bass Jobsen <bass at w3masters.nl>wrote:
>>>>>
>>>>>> Hi Joe,
>>>>>>
>>>>>> I read your message about the 'accessibility-ready' and found it
>>>>>> very interesting. I'm a theme developer, so probably on the wrong list.
>>>>>> I will try to get this a 'accessibility-ready' tag for my
>>>>>> theme although my first target will be to get my theme approved at all (
>>>>>> http://themes.trac.wordpress.org/ticket/15659).
>>>>>>
>>>>>> I read
>>>>>> http://make.wordpress.org/themes/guidelines/guidelines-accessibility/ and
>>>>>> find many don't but less howto or alternatives. I will give you an example,
>>>>>> i read "display:none removes the concealed object from screen
>>>>>> reader’s reading, and should not be used." I understand the meaning.
>>>>>> Now finding a good solution doesn't same easy. My theme use Twitter's
>>>>>> Bootstrap. Both Bootstrap and i paid attention to accessibility, see:
>>>>>> http://getbootstrap.com/getting-started/#accessibility and
>>>>>> https://github.com/bassjobsen/jamedo-bootstrap-start-theme/issues/35
>>>>>>
>>>>>> Although a default component the dropdown adds accessibility, see;
>>>>>> http://getbootstrap.com/components/#dropdowns it doesn't meet the
>>>>>> requirement of not using "display:none". Accessibility can be add by the
>>>>>> sr-only class and using aria-labelledby attributes, but there still will be
>>>>>> a "display:none".
>>>>>> In the case the dropdown adds additional information the content will
>>>>>> be hidden for all users. So maybe the requirement should be content with
>>>>>> "display:none" should be accessible for all users (for example also via a
>>>>>> sr-only button).
>>>>>> I also look for alternative solutions. You will find some here:
>>>>>> http://css-tricks.com/places-its-tempting-to-use-display-none-but-dont/.
>>>>>> Some solution requires javascript (or you show hide only when javascript is
>>>>>> on) which maybe introduce other accessibility issues.
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Bass
>>>>>>
>>>>>>
>>>>>> 2013/12/11 Joe Dolson <design at joedolson.com>
>>>>>>
>>>>>>> In addition to the fixed-layout, fluid-layout, and
>>>>>>> responsive-layout, the 'accessibility-ready' tag is going live in WP 3.8.
>>>>>>>
>>>>>>> For that tag, the guidelines at the theme accessibility review docs
>>>>>>> will need to be followed, in addition to the standard tags:
>>>>>>> http://make.wordpress.org/themes/guidelines/guidelines-accessibility/
>>>>>>>
>>>>>>> If anybody needs any help handling a review that's using the
>>>>>>> accessibility-ready tag, ping me with the ticket and I'll happily chime in.
>>>>>>>
>>>>>>> Best,
>>>>>>> Joe
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Dec 6, 2013 at 12:52 PM, Otto <otto at ottodestruct.com> wrote:
>>>>>>>
>>>>>>>> As part of the 3.8 release scheduled for next week, one of the
>>>>>>>> changes has to do with the allowed tags in themes.
>>>>>>>>
>>>>>>>> The old "Width" tags have been deprecated in favor of new "Layout"
>>>>>>>> tags, which are considered to better describe actual usage.
>>>>>>>>
>>>>>>>> - The "fixed-width" tag has become "fixed-layout".
>>>>>>>> - The "flexible-width" tag has become "fluid-layout".
>>>>>>>> - Finally, a new tag of "responsive-layout" was added.
>>>>>>>>
>>>>>>>> Currently, theme-check will fail these tags and disallow the
>>>>>>>> upload. As of 3.8's release, this will be changed to allow these new tags
>>>>>>>> and to give a warning about the old ones.
>>>>>>>>
>>>>>>>> With regards to theme searching, the old -width tags are aliased to
>>>>>>>> the new tags. So searching for "fixed-layout" will also find "fixed-width"
>>>>>>>> tags, and vice-versa. This is intended to not affect older themes or to
>>>>>>>> impact those themes ability to be searched for in any way, as well as to
>>>>>>>> allow themes using the new tags to continue to be found by pre-3.8
>>>>>>>> installations using the old tags.
>>>>>>>>
>>>>>>>> As I make this switchover, I'm sure there will be a few minor bugs
>>>>>>>> that crop up here and there. Some of those bugs will impact your ability to
>>>>>>>> upload themes. Let me know about any such issues directly and I'll correct
>>>>>>>> them as soon as possible.
>>>>>>>>
>>>>>>>> You can read more about the changes here:
>>>>>>>> http://core.trac.wordpress.org/ticket/21442<http://core.trac.wordpress.org/ticket/21442#comment:28>
>>>>>>>>
>>>>>>>> -Otto
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> theme-reviewers mailing list
>>>>>>>> theme-reviewers at lists.wordpress.org
>>>>>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> ==================
>>>>>>> Joseph Dolson
>>>>>>> Accessibility consultant & WordPress developer
>>>>>>> http://www.joedolson.com
>>>>>>> http://profiles.wordpress.org/joedolson
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> theme-reviewers mailing list
>>>>>>> theme-reviewers at lists.wordpress.org
>>>>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> theme-reviewers mailing list
>>>>>> theme-reviewers at lists.wordpress.org
>>>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> ==================
>>>>> Joseph Dolson
>>>>> Accessibility consultant & WordPress developer
>>>>> http://www.joedolson.com
>>>>> http://profiles.wordpress.org/joedolson
>>>>>
>>>>> _______________________________________________
>>>>> theme-reviewers mailing list
>>>>> theme-reviewers at lists.wordpress.org
>>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> theme-reviewers mailing list
>>>> theme-reviewers at lists.wordpress.org
>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>
>>>>
>>>
>>>
>>> --
>>> ==================
>>>
>>> Did I help you with one of my plug-ins? Donations keep support possible!
>>> http://www.joedolson.com/donate.php
>>>
>>> ==================
>>>
>>> Joseph Dolson
>>> Accessibility consultant and WordPress developer
>>> http://www.joedolson.com
>>> http://profiles.wordpress.org/joedolson
>>>
>>
>>
>>
>> --
>> ==================
>> Joseph Dolson
>> Accessibility consultant & WordPress developer
>> http://www.joedolson.com
>> http://profiles.wordpress.org/joedolson
>>
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>


-- 
==================
Joseph Dolson
Accessibility consultant & WordPress developer
http://www.joedolson.com
http://profiles.wordpress.org/joedolson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140112/26d64284/attachment-0001.html>


More information about the theme-reviewers mailing list