Skip to content

Commit 653fb3a

Browse files
authored
Merge pull request #2806 from atulya-innovaccer/feat-link-focus-state
feat(link): updated focus state for Link
2 parents 01973c0 + ef468bb commit 653fb3a

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

css/src/components/link.module.css

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
border-bottom: var(--border-width-2-5) solid transparent;
77
}
88

9-
.Link:focus-visible {
10-
outline: none;
9+
.Link:focus {
10+
outline: var(--border-width-05) solid var(--primary-focus);
11+
outline-offset: var(--spacing-05);
12+
border-radius: var(--border-radius-10);
1113
}
1214

1315
.Link--regular {
@@ -49,16 +51,6 @@
4951
border: none;
5052
}
5153

52-
.Link--default:focus {
53-
box-shadow: var(--shadow-spread) var(--primary-shadow);
54-
border-radius: var(--border-radius-10);
55-
}
56-
57-
.Link--subtle:focus {
58-
box-shadow: var(--shadow-spread) var(--secondary-shadow);
59-
border-radius: var(--border-radius-10);
60-
}
61-
6254
.Link--default-disabled {
6355
color: var(--primary-lighter);
6456
pointer-events: none;

0 commit comments

Comments
 (0)