4 ms·
If the requirement was truly only to satisfy ADA laws, then it seems like you should have implemented it as: window.ADA_MIN_FONT_SIZE = 16; This seems mor
by jmchuster 5y ago
If the requirement was truly only to satisfy ADA laws, then it seems like you should have implemented it as:
window.ADA_MIN_FONT_SIZE = 16;
This seems more like you were given the requirement and then went:
1) we could implement this is as a custom global variable for this specific use case
2) maybe what we need is to be able to override a single property
3) maybe what we need is to be able to override a group of properties
4) maybe what we need is to be able to define multiple levels of priority
and they ended up stopping at (2) when we really needed it to go to (4)
- ivraatiems 5y agoAre you referring to "window" the JavaScript object? If so, bear in mind that JavaScript is not a requirement for CSS to work on a page, and CSS creating a dependency on JS would break a lot of things.
- francisofascii 5y agoEspecially back when CSS was created, disabling JavaScript was much more prevalent.
- jmchuster 5y agoSure, then make it a meta attribute. Just needs to be a global somewhere.