Today I Learned - Rocky Kev

Tagged “accessibility”

  1. TIL aria-expanded for showing when things are hidden/shown

    The aria-expanded attribute is set on an element to indicate if a control is expanded or collapsed, and whether or not its child elements are displayed or hidden.

  2. TIL ARIA role presentation

    Think of this as a reset. You use role=presentation to remove semantic meaning from an element.

  3. TIL reduce-motion-blur

    Dizziness and vertigo are symptoms of a vestibular balance disorder. If the user has set up a user preference that they prefer motion-based animation be disabled/reduced, we can tap into that. As web developers, we can also support them.

  4. TIL Icon Fonts being the suckfest that they are

    In 99% of all use-cases, SVGs are better.

  5. TIL Decorative Images

    make a blank alt='' for presentation images - aka image might already be given using adjacent text, or the image might be included to make the website more visually attractive.

  6. TIL Accessibility in Devtools

    You can enable the Accessibility Devtool (currently in experiments mode) to do screenreader testing.

  7. TIL Disable users from highlighting text

    You can use the 'user-select' property to prevent an element from being highlighted by the user.

  8. TIL add link decoration to help with accessibility

    One of the WCAG requirements is not to rely on color only when you want to distinguish a button or link from the rest of the text. Painting links in blue or another color doesn’t suffice since it still might not be visible for people with color blindness. The most typical method is underlining links; they can also appear in bold font.

  9. TIL a Accessible way to solve Read More

    Screenreaders help sight-impaired visitors have a better experience. The most annoying thing on a news website is to hear this: Read more — link, read more — link, read more — link. There's two ways to solve it.

  10. TIL that Xbox has a accessibility Guidelines

    The guideline also provides `gamer personas', types of gamers who are affected by that specific issue and how your accessibility solution will help them.

  11. TIL using live regions for autocomplete accessibility

    However, the screen reader does not recognise this as an action to tell the user about. It will announce the header and the input box when they gain focus, but not the search results.

  12. TIL writing modes

    The 'writing-mode' CSS property determines if lines are laid our horizontally, or vertically. The direction is determined by the context of the direction of the content.

  13. TIL Writing really good alt text

    One way to think of alternative text is to think about how you would read the page containing the image to someone over the phone, without mentioning that there is an image present. Whatever you say instead of the image is typically a good start for writing the alternative text.

  14. TIL Accessibility changes and dynamic content

    Using JavaScript, it is possible to dynamically change parts of a page without requiring the entire page to reload. But the result is that pages with accessibility issues do not return the value.

  15. TIL Accessible CSS Accordions

    For years, I've been looking to find a CSS accordion that is also accessible.

  16. TIL outline-offset

    Some sites remove :focus. Those sites suck. They should instead do this:

  17. TIL Alt text for images that are important

    Alt text is required if the image is a critical part of the content.

  18. TIL Alt Text for everything else

    alt text for images with captions, that are decorative, part of image sets

  19. TIL Adding Alt text to Supporting Images

    For images not critical to the content but support it, a alt attribute must be present.

  20. TIL Alt text for images that contain text

    Alt text for images that contain text

  21. TIL alt text for logos, the right way

    Putting alt text on logos, the right way

  22. TIL writing-mode

    How to flip text so it's sideways, for international reasons.

  23. TIL that you shouldn't use Placeholders as inputs

    Placeholder texts aren't labels.

  24. TIL When to use a button versus an "a href" link

    When to use one or the other

  25. TIL the difference between strong and i

    When to use strong vs i

  26. TIL the html lang affects the screen reader voice

    <html> element's lang attribute tells it which language it is written in.

  27. TIL Disabling the submit buttons is bad

    Disabling the submit buttons is bad

  28. TIL Putting error messages above the field

    Putting error messages above the field

  29. TIL Microcopy

    Password vs Choose Password

  30. TIL Axe for Accessibility

    Be more accessible.

See all tags.