toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

Remove `clip` from our hide-visually() mixin

Open MrDinsdale opened this issue 8 years ago • 2 comments

The clip CSS property which is currently used in our hide-visually() mixin (and potentially elsewhere) has been deprecated for some time. It currently still works in most browsers however will likely be removed at some point in the future.

We should look at alternatives, clip-path has poor support on legacy browsers but we might be able to utilise clip-path with clip as a fallback?

See https://developer.mozilla.org/en/docs/Web/CSS/clip

MrDinsdale avatar Aug 18 '17 10:08 MrDinsdale

@MrDinsdale what do you propose for this?

Just cautious of the fact this has been open since last August!

joe-bell avatar May 16 '18 10:05 joe-bell

The article is a few years old but WebAIM have a slightly different recommendation for hiding text: https://webaim.org/techniques/css/invisiblecontent/ using text-indent: -10000px;.

steallan-sky avatar Aug 09 '18 08:08 steallan-sky