Skip to content

Commit bc266c2

Browse files
authored
docs: update sr-only utility to use clip-path inset(50%) (#2385)
This updates the sr-only documentation to match the current implementation in Tailwind CSS, replacing the legacy clip property with clip-path: inset(50%).
1 parent 6d3039b commit bc266c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docs/display.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const description = "Utilities for controlling the display box type of an
4040
padding: 0;
4141
margin: -1px;
4242
overflow: hidden;
43-
clip: rect(0, 0, 0, 0);
43+
clip-path: inset(50%);
4444
white-space: nowrap;
4545
border-width: 0;
4646
`,

0 commit comments

Comments
 (0)