Skip to content

Commit 5b98249

Browse files
author
Jaap Roes
committed
Restore opacity, add aria-hidden
1 parent 9c03af6 commit 5b98249

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ruff_dev/src/generate_rules_table.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ fn generate_table(table_out: &mut String, rules: impl IntoIterator<Item = Rule>,
2525
format!("<span title='Automatic fix available'>{FIX_SYMBOL}</span>")
2626
}
2727
FixAvailability::None => {
28-
format!("<span style='visibility: hidden'>{FIX_SYMBOL}</span>")
28+
format!("<span style='opacity: 0.1' aria-hidden='true'>{FIX_SYMBOL}</span>")
2929
}
3030
};
3131
let preview_token = if rule.is_preview() || rule.is_nursery() {
3232
format!("<span title='Rule is in preview'>{PREVIEW_SYMBOL}</span>")
3333
} else {
34-
format!("<span style='visibility: hidden'>{PREVIEW_SYMBOL}</span>")
34+
format!("<span style='opacity: 0.1' aria-hidden='true'>{PREVIEW_SYMBOL}</span>")
3535
};
3636
let status_token = format!("{fix_token} {preview_token}");
3737

0 commit comments

Comments
 (0)