Closed mayank99 closed 1 year ago
yo, thanks for the thoughts and help offering!
i'm very aware of clamp and it's ability to compete with zoom. I'm also super familiar with Utopia. here's a few thoughts / where I'm at:
All that to say, from my testing on these there isn't an accessibility issue and if folks like Utopia they can go snag it and overwrite / not import the open props ones.
currently, the fluid font sizes are defined as follows: https://github.com/argyleink/open-props/blob/ed5a83da2f497a180b296b1eed4ca3259db82e5f/src/props.fonts.js#L53-L56
this can cause a WCAG failure when trying to zoom. (see more details)
from what i understand, this issue is because of the
vw
used in the middle part of theclamp
. if this is paired with a combination ofvw + rem
, then it should fix the issue. an example (values are random):to get the actual values, a generator like utopia.fyi could be used, to tailor the values to the closest of what is currently offered.
the same idea could also be applied to fluid spacing: https://github.com/argyleink/open-props/blob/ed5a83da2f497a180b296b1eed4ca3259db82e5f/src/props.sizes.js#L20-L29