Skip to content

Commit 30597af

Browse files
committed
Update CSS for breadcrumb slash separator
1 parent e02694d commit 30597af

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/css': patch
3+
---
4+
5+
Ensures that the visual slash separator for breadcrumbs is not announced by screenreaders.

src/breadcrumb/breadcrumb.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
list-style: none;
77

88
&::after {
9-
padding-right: $em-spacer-5;
10-
padding-left: $em-spacer-5;
11-
color: var(--color-text-disabled);
12-
content: "/";
9+
margin: 0 $em-spacer-5;
10+
display: inline-block;
11+
transform: rotate(15deg);
12+
border-right: 0.1em solid var(--color-text-disabled);;
13+
height: 0.8em;
14+
content: '';
1315
}
1416

1517
&:first-child {

0 commit comments

Comments
 (0)