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' 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; }