-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert
Breadcrumbs
and Breadcrumbs.Item
to CSS modules behind th…
…e primer_react_css_modules_team feature flag (#5017) * Convert breadcrumbs to css modules * Create mighty-buckets-push.md * Force the ga flag on for Link * Update AvatarStack snap * Updating styles for item * Updates from editor * Update toggleStyledComponent.tsx * Add defaultAs as a prop to the toggleStyledComponent Co-authored-by: Josh Black <joshblack@github.com> --------- Co-authored-by: Josh Black <joshblack@github.com>
- Loading branch information
Showing
8 changed files
with
246 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@primer/react": minor | ||
--- | ||
|
||
Convert `Breadcrumbs` and `Breadcrumbs.Item` to CSS modules behind the primer_react_css_modules_team feature flag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
.BreadcrumbsBase { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
.BreadcrumbsList { | ||
padding-left: 0; | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
} | ||
|
||
.ItemWrapper { | ||
display: inline-block; | ||
font-size: var(--text-body-size-medium); | ||
white-space: nowrap; | ||
list-style: none; | ||
|
||
&::after { | ||
display: inline-block; | ||
height: 0.8em; | ||
/* stylelint-disable-next-line primer/spacing */ | ||
margin: 0 0.5em; | ||
font-size: var(--text-body-size-medium); | ||
content: ''; | ||
/* stylelint-disable-next-line primer/borders */ | ||
border-right: 0.1em solid var(--fgColor-muted); | ||
transform: rotate(15deg) translateY(0.0625em); | ||
} | ||
|
||
&:first-child { | ||
margin-left: 0; | ||
} | ||
|
||
&:last-child { | ||
&::after { | ||
content: none; | ||
} | ||
} | ||
} | ||
|
||
.Item { | ||
display: inline-block; | ||
|
||
&:hover, | ||
&:focus { | ||
text-decoration: underline; | ||
} | ||
} | ||
|
||
.ItemSelected { | ||
color: var(--fgColor-default); | ||
pointer-events: none; | ||
|
||
&:focus { | ||
text-decoration: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.