Skip to content

Commit 3c7d3d5

Browse files
committed
Tab buttons should support aria-current=page
1 parent c299908 commit 3c7d3d5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## [Unreleased]
2+
- Tab buttons should support aria-current=page
23

34
## 1.1.8 - 2025-02-27
45
- Make trix width 100%

lib/generators/css_zero/add/templates/app/assets/stylesheets/tabs.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
--btn-hover-color: transparent;
2222
--btn-inline-size: var(--size-full);
2323

24-
&[aria-selected=true] {
24+
&:is([aria-selected=true], [aria-current=page]) {
2525
--btn-background: var(--color-bg);
2626
--btn-box-shadow: var(--shadow-sm);
2727
--btn-hover-color: var(--color-bg);

0 commit comments

Comments
 (0)