WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Icon-only buttons

for

From: Tom Livingston
Date: Jan 20, 2022 7:00AM


On Thu, Jan 20, 2022 at 8:53 AM Geethavani.Shamanna
< <EMAIL REMOVED> > wrote:
>
> Interesting. Should icons be presented as buttons even if they are not interactive?
>
> Also, I am currently testing a web page that contains icons titled 'Contribution-Count-Icon', 'Like-Count-Icon', and so on. The developers have conveniently used the original name of the icon in the alt text. Above each of these icons there are numbers such as 0, 58, and so on, based on the number of likes or comments. It would be ideal if the alt text for these icons can also reflect this number. For example, 'Number of likes: 58'. However, since the number is dynamic, what is the best way to incorporate this into the alt text? Finally, should these icons be presented as buttons, although they cannot be clicked on?
>
> Many thanks.
> Geetha
>

There are others that are far more knowledgeable than I on this, like
Patrick, but I don't see why you couldn't update the alt text in the
code the same way you are updating the text on the page. Also, I would
think you would not use a button element if these are not interactive.



--

Tom Livingston | Senior Front End Developer | Media Logic |
ph: 518.456.3015x231 | fx: 518.456.4279 | medialogic.com


#663399