Skip to content

Commit

Permalink
Update CSS for breadcrumb slash separator
Browse files Browse the repository at this point in the history
  • Loading branch information
khiga8 committed May 25, 2021
1 parent e02694d commit 30597af
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/violet-peaches-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/css': patch
---

Ensures that the visual slash separator for breadcrumbs is not announced by screenreaders.
10 changes: 6 additions & 4 deletions src/breadcrumb/breadcrumb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
list-style: none;

&::after {
padding-right: $em-spacer-5;
padding-left: $em-spacer-5;
color: var(--color-text-disabled);
content: "/";
margin: 0 $em-spacer-5;
display: inline-block;
transform: rotate(15deg);
border-right: 0.1em solid var(--color-text-disabled);;
height: 0.8em;
content: '';
}

&:first-child {
Expand Down

0 comments on commit 30597af

Please sign in to comment.