|
|
|
|
|
by the_other
1875 days ago
|
|
In web apps, you can short-circuit this “there’s no business case” nonsense a bit by building your components using the accessibility attributes as the hooks between HTML, JS & CSS. E.G. rather than adding classes for everything you want JS and CSS to act on, instead hook onto the attributes role, aria-*, hidden and so on. If you do it as habit, it takes only a little bit longer to think about or type than attaching a class name, but helps you use the browser’s built-in accessibility support “for free”. If you work this way, you don’t even need to tell management what you’re doing. I accept that this is easier on smaller, or new projects. |
|