W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > April to June 2017

Re: SC #78 'Adapting text', and a question regarding consensus on icon fonts

From: Alastair Campbell <acampbell@nomensa.com>
Date: Thu, 20 Apr 2017 14:56:37 +0000
To: David MacDonald <david100@sympatico.ca>
CC: Detlev Fischer <detlev.fischer@testkreis.de>, "w3c-wai-gl@w3.org" <w3c-wai-gl@w3.org>
Message-ID: <4B74D018-18C9-4FF6-AA7E-699E44391915@nomensa.com>
Yes, I think that would pass.

There is an assumption that a user with a blunt instrument (over-ride all text with a script/style sheet) can avoid doing so for font-icons which are marked up like that.

I would argue that as soon as something has viable techniques, it is ok. The user-side tools are at an early stage, but these aspects are so easy to do we just need to get something down and publish it. I’ll try and update my bookmarklet and create a test page tomorrow.

Cheers,

-Alastair


From: David MacDonald <david100@sympatico.ca>
Date: Thursday, 20 April 2017 at 15:44
To: Alastair Campbell <acampbell@nomensa.com>
Cc: Detlev Fischer <detlev.fischer@testkreis.de>, WCAG <w3c-wai-gl@w3.org>
Subject: Re: SC #78 'Adapting text', and a question regarding consensus on icon fonts

So a font icon that passes 2.1 would look something like this:

<i class="fa fa-myfont" role="img" aria-hidden="true"></i><span class="sr-text>replacement</span>

Is that the way?


Cheers,
David MacDonald



CanAdapt Solutions Inc.

Tel:  613.235.4902

LinkedIn
<http://www.linkedin.com/in/davidmacdonald100>

twitter.com/davidmacd<http://twitter.com/davidmacd>

GitHub<https://github.com/DavidMacDonald>

www.Can-Adapt.com<http://www.can-adapt.com/>



  Adapting the web to all users
            Including those with disabilities

If you are not the intended recipient, please review our privacy policy<http://www.davidmacd.com/disclaimer.html>

On Thu, Apr 20, 2017 at 9:56 AM, Alastair Campbell <acampbell@nomensa.com<mailto:acampbell@nomensa.com>> wrote:
> Are these icons going to disappear if the font family is over ridden by a user style sheet?

Currently, yes, because they are working to WCAG 2.0 and haven’t considered font-replacement. The focus has been on WCAG 2.0 SCs,  primarily screen-reader access.

However, if a technique were to use the role=img attribute, and the user-scripts incorporate that, then it would be fine.

It is in that sweet spot of:

•         A current problem;

•         A relatively easy solution.

Having the SC means we put a stake in the ground about the requirement, and can flesh out the understanding and techniques, to get out of the catch-22.

Cheers,

-Alastair



From: David MacDonald <david100@sympatico.ca<mailto:david100@sympatico.ca>>
Date: Thursday, 20 April 2017 at 14:50
To: Alastair Campbell <acampbell@nomensa.com<mailto:acampbell@nomensa.com>>
Cc: Detlev Fischer <detlev.fischer@testkreis.de<mailto:detlev.fischer@testkreis.de>>, WCAG <w3c-wai-gl@w3.org<mailto:w3c-wai-gl@w3.org>>
Subject: Re: SC #78 'Adapting text', and a question regarding consensus on icon fonts

Here's the current thinking around icon font accessibility

http://fontawesome.io/accessibility/


Are these icons going to disappear if the font family is over ridden by a user style sheet?



Cheers,
David MacDonald



CanAdapt Solutions Inc.

Tel:  613.235.4902<tel:(613)%20235-4902>

LinkedIn
<http://www.linkedin.com/in/davidmacdonald100>

twitter.com/davidmacd<http://twitter.com/davidmacd>

GitHub<https://github.com/DavidMacDonald>

www.Can-Adapt.com<http://www.can-adapt.com/>



  Adapting the web to all users
            Including those with disabilities

If you are not the intended recipient, please review our privacy policy<http://www.davidmacd.com/disclaimer.html>

On Thu, Apr 20, 2017 at 6:06 AM, Alastair Campbell <acampbell@nomensa.com<mailto:acampbell@nomensa.com>> wrote:
Detlev wrote:
> So would this basically be a technique *for users* who would have to update any custom stylesheets they may be using by working in this exception for elements with role=img?

Yes, but it has to work both ways, this would also be a sufficient technique for the new SC. I.e. if you use font icons that are problematic when fonts are replaced, then it musts be marked up appropriately.

It would also need to be included as something in the testing text (understanding doc), and recommended for user-agent side solutions.

>  I guess there is nothing authors can do to safely exempt icon fonts from any manipulation by user style sheets that fail to cater for icon fonts this way, correct?

Correct, but if this is a known thing included in the techniques and understanding document, there is a viable solution.

Cheers,

-Alastair


Received on Thursday, 20 April 2017 14:57:14 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 21:08:12 UTC