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
+1 -12
View File
@@ -79,17 +79,6 @@ const styles = stylex.create({
dimWhenDisabled: {
opacity: { default: 1, ":disabled": 0.5 },
},
srOnly: {
position: "absolute",
width: 1,
height: 1,
padding: 0,
margin: -1,
overflow: "hidden",
clipPath: "inset(50%)",
whiteSpace: "nowrap",
borderWidth: 0,
},
});
export default function BlocklistsPage() {
@@ -170,7 +159,7 @@ export default function BlocklistsPage() {
<th {...stylex.props(shared.th)}>Skipped regex</th>
<th {...stylex.props(shared.th)}>Last updated</th>
<th {...stylex.props(shared.th)}>
<span {...stylex.props(styles.srOnly)}>Actions</span>
<span {...stylex.props(shared.srOnly)}>Actions</span>
</th>
</tr>
</thead>