milestone 23 s3: move srOnly into the shared style vocabulary
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user