Skip to content

Commit

Permalink
feat(ondark): update background values #156
Browse files Browse the repository at this point in the history
This commit address an issue related to updated color spec
for the button when placed on dark backgrounds.

See design spec:
https://www.figma.com/file/CFVIEQkpeykfQejPppBili/Button?type=design&node-id=322-813&t=FqowZrMG1mtW6O1z-0

Changes to be committed:
modified:   src/style.scss
  • Loading branch information
blackfalcon committed Jun 6, 2023
1 parent 05509b8 commit b6ef5f8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -296,14 +296,14 @@ slot {
// auro-buttonOndark--secondary
&[variant='secondary'],
&--secondary {
background-color: transparent;
background-color: var(--auro-color-background-darker);
border: 1px solid var(--auro-color-ui-default-on-dark);
color: var(--auro-color-ui-default-on-dark);

@media (hover: hover) {
&:active,
&:hover {
background-color: var(--auro-color-base-black-opacity-15);
background-color: var(--auro-color-background-darkest);
}
}

Expand All @@ -315,7 +315,7 @@ slot {
&:disabled {
@media (hover: hover) {
&:hover {
background-color: transparent;
background-color: var(--auro-color-background-darker);
border: 1px solid var(--auro-color-ui-default-on-dark);
}
}
Expand All @@ -326,13 +326,13 @@ slot {
transform: unset;

color: rgba($auro-color-ui-default-on-dark, $disabledOPacity);
background-color: transparent;
background-color: var(--auro-color-background-darker);
border: 1px solid rgba($auro-color-ui-default-on-dark, $disabledOPacity);

@media (hover: hover) {
&:hover {
color: rgba($auro-color-ui-default-on-dark, $disabledOPacity);
background-color: transparent;
background-color: var(--auro-color-background-darker);
border: 1px solid rgba($auro-color-ui-default-on-dark, $disabledOPacity);
}
}
Expand Down

0 comments on commit b6ef5f8

Please sign in to comment.