Currently I add font-variant-numeric: tabular-nums; to the Countdown Element to help prevent horizontal layout shifts/jitter when the digits change. Could this become a toggle option in the element?
What font are you using that causes issues? I’m not sure I see a difference when I add that.
Yeah, not every single font will support it. It would need to have support for tabular figures. So far I’ve tried it on SN Pro and Inter. When I add the tabular nums declaration I see the horizontal shift is pretty much completely gone.
1 Like
Okay thanks for that. I’ll add it eventually and hopefully we don’t have any issues. Have a great weekend.
1 Like
Nice! You have a great weekend too.
1 Like