Skip to content

Commit

Permalink
fix: Don’t use deprecated CSS properties in .sr-only (#2710)
Browse files Browse the repository at this point in the history
* fix: Don’t use deprecated CSS properties in '.sr-only'

* chore: Add changeset
  • Loading branch information
smockle authored Sep 24, 2024
1 parent eed1fcd commit 3017831
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-bottles-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/css': patch
---

Replace deprecated CSS properties in '.sr-only'
4 changes: 2 additions & 2 deletions src/utilities/visibility-display.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3017831

Please sign in to comment.