Skip to content

Consider replacing deprecated clip #1100

Description

@janbrasna

Description

The visually-hidden helper includes an outdated syntax of clip: rect() that may need replacing with some other clipping properties or maybe updating the helper to something more current overall.

Steps to reproduce

The next stylelint-config-standard-scss major version won't like it.

😭 /actions/runs/17982808350/job/51153182926 ✂️

Expected result

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

Actual result

@mixin visually-hidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;

Environment

This might be breaking of sorts, in case a consumer applies the mixin, but then e.g. redefines or undoes the visual hiding in some cases, changing the clip value there — so there might be a migration to the newer mixin content version necessary for them.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🪲Something isn't working

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions