milestone 23 s3: move srOnly into the shared style vocabulary

This commit is contained in:
2026-08-12 22:16:58 +02:00
parent bb39539fdf
commit 0f58966b31
8 changed files with 33 additions and 76 deletions
+13
View File
@@ -151,6 +151,19 @@ export const styles = stylex.create({
color: colors.dangerText,
},
/** Visible to a screen reader only; the element keeps its place in the a11y tree. */
srOnly: {
position: "absolute",
width: 1,
height: 1,
padding: 0,
margin: -1,
overflow: "hidden",
clipPath: "inset(50%)",
whiteSpace: "nowrap",
borderWidth: 0,
},
th: {
borderBottomWidth: 1,
borderBottomStyle: "solid",