From df0d41b214842a4bf01b809c7ae975dce88197f1 Mon Sep 17 00:00:00 2001 From: Clay Miller Date: Wed, 18 Sep 2024 16:13:51 +0000 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20Don=E2=80=99t=20use=20deprecated=20C?= =?UTF-8?q?SS=20properties=20in=20'.sr-only'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utilities/visibility-display.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utilities/visibility-display.scss b/src/utilities/visibility-display.scss index b925331103..f0953a853c 100644 --- a/src/utilities/visibility-display.scss +++ b/src/utilities/visibility-display.scss @@ -99,9 +99,9 @@ height: 1px; padding: 0; overflow: hidden; - clip: rect(0, 0, 0, 0); + clip-path: rect(0 0 0 0); // Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1241631 - word-wrap: normal; + overflow-wrap: normal; border: 0; } From 0693f9e00aa345fa2d8d4b21f30e3deae46c69cb Mon Sep 17 00:00:00 2001 From: Clay Miller Date: Wed, 18 Sep 2024 16:22:08 +0000 Subject: [PATCH 2/2] chore: Add changeset --- .changeset/spotty-bottles-jam.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/spotty-bottles-jam.md diff --git a/.changeset/spotty-bottles-jam.md b/.changeset/spotty-bottles-jam.md new file mode 100644 index 0000000000..1bec4cbf26 --- /dev/null +++ b/.changeset/spotty-bottles-jam.md @@ -0,0 +1,5 @@ +--- +'@primer/css': patch +--- + +Replace deprecated CSS properties in '.sr-only'