Skip to content

Commit afd46c1

Browse files
authored
Improve focus styles for links inside Timeline.Item (#1089)
* improve focus styles in Timeline.Item links * add changeset * add outline offset * switch to :focus-visible * update changeset
1 parent 0580852 commit afd46c1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/sweet-chefs-notice.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react-brand': patch
3+
---
4+
5+
Improved focus styles for links inside `Timeline.Item`.

packages/react/src/Timeline/Timeline.module.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
color: var(--brand-InlineLink-color-pressed);
7979
}
8080

81+
.Timeline__item a:focus-visible {
82+
outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);
83+
outline-offset: var(--base-size-2);
84+
}
85+
8186
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
8287
@media (prefers-reduced-motion: reduce) {
8388
.Timeline__item,

0 commit comments

Comments
 (0)