Skip to content

Commit f7617b7

Browse files
Slashgearclaude
andcommitted
fix(ui): improve year navigation separators
Replace list-style disc with CSS pseudo-element dots between years. Properly centered, and invisible to screen readers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 581db9c commit f7617b7

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

modules/event/components/YearNavigation.module.css

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55

66
.list {
77
display: flex;
8+
align-items: center;
89
margin-top: 56px;
910
padding-bottom: 12px;
1011
font-weight: 700;
11-
list-style: disc outside;
12+
list-style: none;
1213
gap: 20px;
1314
overflow: auto;
1415
scroll-snap-type: x proximity;
@@ -19,12 +20,10 @@
1920
scroll-snap-align: start;
2021
}
2122

22-
.list li:first-child {
23-
list-style: none;
24-
}
25-
26-
.separator {
27-
padding: 0 5px;
23+
.list li + li::before {
24+
content: '·';
25+
margin-right: 20px;
26+
opacity: 0.5;
2827
}
2928

3029
.link[aria-current='page'] {

0 commit comments

Comments
 (0)