Skip to content

Commit

Permalink
fix(code-snippet): update button active token (#1800)
Browse files Browse the repository at this point in the history
* fix(code-snippet): update button active token

* chore(code-snippet): flatten nesting
  • Loading branch information
SimonFinney authored and asudoh committed Feb 19, 2019
1 parent 9bf324c commit 20301a4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions src/components/code-snippet/_code-snippet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -321,14 +321,14 @@
background-color: $ui-03;
}

&:active {
background-color: $copy-active;
}

&:focus {
outline: none;
border: 2px solid $interactive-01;
}

&:active {
background: $copy-active;
}
}

.#{$prefix}--snippet--inline code {
Expand Down Expand Up @@ -430,7 +430,7 @@
}

.#{$prefix}--snippet-button:active {
background: $copy-active;
background-color: $copy-active;
}

.#{$prefix}--btn--copy__feedback {
Expand Down Expand Up @@ -480,12 +480,12 @@
color: $text-01;
}

.#{$prefix}--snippet-btn--expand:focus {
@include focus-outline('outline');
.#{$prefix}--snippet-btn--expand:active {
background-color: $copy-active;
}

.#{$prefix}--snippet-btn--expand:active {
background: $copy-active;
.#{$prefix}--snippet-btn--expand:focus {
@include focus-outline('outline');
}

.#{$prefix}--snippet--expand .#{$prefix}--snippet-btn--expand .#{$prefix}--icon-chevron--down {
Expand Down
4 changes: 2 additions & 2 deletions src/globals/scss/_theme-tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
$progress-indicator-line-offset: 0.625rem !default !global;

//Code Snippet
$copy-active: $ibm-color__gray-30 !default !global;
$copy-btn-feedback: $ibm-color__gray-80 !default !global;
$copy-active: $active-ui !default !global;
$copy-btn-feedback: $ibm-colors__gray-80 !default !global;

// Radio Button
$radio-border-width: 1px !default !global;
Expand Down

0 comments on commit 20301a4

Please sign in to comment.