dotcom-page-kit icon indicating copy to clipboard operation
dotcom-page-kit copied to clipboard

Remove the `:focus-visible` polyfill?

Open notlee opened this issue 2 years ago • 0 comments

Origami no longer depend on the focus-visible polyfill, it can likely be dropped from dotcom-page-kit to simplify our tech and keep ft.com performant for readers 🙌

The :focus-visible CSS selector now has wide browser support. Origami provides a :focus fallback for the minority of browsers in the FT’s browser support policy which do not support the :focus-visible selector.

Before dropping the polyfill ensure o-normalise is at 3.3.0 or higher. https://origami.ft.com/blog/2022/12/14/focus-styles/

notlee avatar Dec 15 '22 13:12 notlee