Skip to content

Commit

Permalink
Match buttons to design system
Browse files Browse the repository at this point in the history
  • Loading branch information
gabalafou committed Dec 10, 2023
1 parent 4839dc2 commit 409861a
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,3 +304,23 @@ details.sd-dropdown {
}
}
}

/*******************************************************************************
* Buttons (which in Sphinx Design are actually links that look like buttons)
*/
.bd-content {
@each $name in $sd-semantic-color-names {
.sd-btn-#{$name} {
&:focus-visible {
// Override Sphinx Design's use of -highlight colors. The -highlight
// colors are 15% darker, so this would create the effect of darkening
// the button when focused but we just want the button to have a focus
// ring of the same (non-highlight) color.
background-color: var(--sd-color-#{$name}) !important;
border-color: var(--sd-color-#{$name}) !important;
outline: var(--sd-color-#{$name}) solid $focus-ring-width;
outline-offset: $focus-ring-width;
}
}
}
}

0 comments on commit 409861a

Please sign in to comment.