Skip to content

Commit

Permalink
Use control borders for subnav + disabled button fix (#2643)
Browse files Browse the repository at this point in the history
* use control borders

* Create red-flowers-own.md
  • Loading branch information
langermank authored Jun 20, 2024
1 parent cc3854c commit ab6076c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/red-flowers-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Use `control` borders for subnav + disabled button fix
4 changes: 2 additions & 2 deletions src/buttons/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
&.disabled,
&[aria-disabled='true'] {
color: var(--fgColor-disabled, var(--color-primer-fg-disabled));
background-color: var(--button-default-bgColor-rest, var(--color-btn-bg));
border-color: var(--button-default-borderColor-rest, var(--color-btn-border));
background-color: var(--button-default-bgColor-disabled, var(--color-btn-bg));
border-color: var(--button-default-borderColor-disabled, var(--color-btn-border));

.octicon {
color: var(--fgColor-disabled, var(--color-primer-fg-disabled));
Expand Down
2 changes: 1 addition & 1 deletion src/navigation/subnav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
// stylelint-disable-next-line primer/typography
line-height: 20px;
color: var(--fgColor-default, var(--color-fg-default));
border: $border-width $border-style var(--borderColor-default, var(--color-border-default));
border: $border-width $border-style var(--control-borderColor-rest, var(--color-border-default));

+ .subnav-item {
// stylelint-disable-next-line primer/spacing
Expand Down

0 comments on commit ab6076c

Please sign in to comment.