From 8376b65ea5c1df8a1645e7815304c3ba0d7135de Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Mon, 17 Mar 2025 21:35:01 +0000 Subject: [PATCH] Remove CSS modules feature flag from VisuallyHidden --- .changeset/gold-ducks-grin.md | 5 +++ .../__snapshots__/CounterLabel.test.tsx.snap | 24 +----------- .../src/VisuallyHidden/VisuallyHidden.tsx | 38 ++++++------------- .../__snapshots__/Autocomplete.test.tsx.snap | 12 +----- 4 files changed, 20 insertions(+), 59 deletions(-) create mode 100644 .changeset/gold-ducks-grin.md diff --git a/.changeset/gold-ducks-grin.md b/.changeset/gold-ducks-grin.md new file mode 100644 index 00000000000..548cab3ea44 --- /dev/null +++ b/.changeset/gold-ducks-grin.md @@ -0,0 +1,5 @@ +--- +"@primer/react": minor +--- + +Remove CSS modules feature flag from VisuallyHidden diff --git a/packages/react/src/CounterLabel/__snapshots__/CounterLabel.test.tsx.snap b/packages/react/src/CounterLabel/__snapshots__/CounterLabel.test.tsx.snap index 77ff00aad26..27f0f50a32b 100644 --- a/packages/react/src/CounterLabel/__snapshots__/CounterLabel.test.tsx.snap +++ b/packages/react/src/CounterLabel/__snapshots__/CounterLabel.test.tsx.snap @@ -1,16 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`CounterLabel renders with secondary scheme when no "scheme" prop is provided 1`] = ` -.c0:not(:focus):not(:active):not(:focus-within) { - -webkit-clip-path: inset(50%); - clip-path: inset(50%); - height: 1px; - overflow: hidden; - position: absolute; - white-space: nowrap; - width: 1px; -} -