Skip to content

Commit

Permalink
Merge branch 'master' into 7614-sketch-icons-sync-regression
Browse files Browse the repository at this point in the history
  • Loading branch information
andreancardona authored Jan 26, 2021
2 parents 3047c10 + 670477d commit 6e66f09
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 39 deletions.
25 changes: 5 additions & 20 deletions packages/components/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -15188,11 +15188,6 @@ Button styles
}
}

.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--btn--ghost:focus svg,
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--btn--ghost:hover svg {
fill: $icon-01;
}

.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger:focus {
border-color: $focus;

Expand Down Expand Up @@ -15250,8 +15245,6 @@ Button styles
.#{$prefix}--btn__icon,
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--btn--ghost:hover
.#{$prefix}--btn__icon {
fill: $icon-01;

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
Expand All @@ -15264,7 +15257,7 @@ Button styles

.#{$prefix}--btn--ghost.#{$prefix}--btn--icon-only
.#{$prefix}--btn__icon
path,
path:not([data-icon-path]),
.#{$prefix}--btn--ghost.#{$prefix}--btn--icon-only .#{$prefix}--btn__icon {
fill: $icon-01;
}
Expand Down Expand Up @@ -15497,8 +15490,8 @@ Button styles
- [active-ui [variable]](#active-ui-variable)
- [carbon--spacing-03 [variable]](#carbon--spacing-03-variable)
- [hover-primary-text [variable]](#hover-primary-text-variable)
- [icon-01 [variable]](#icon-01-variable)
- [focus [variable]](#focus-variable)
- [icon-01 [variable]](#icon-01-variable)
- [danger-01 [variable]](#danger-01-variable)
- [hover-danger [variable]](#hover-danger-variable)
- [active-danger [variable]](#active-danger-variable)
Expand Down Expand Up @@ -15609,7 +15602,7 @@ Button variant styles
}

.#{$prefix}--btn__icon,
.#{$prefix}--btn__icon path {
.#{$prefix}--btn__icon path:not([data-icon-path]) {
fill: $icon-color;
}
}
Expand Down Expand Up @@ -15773,16 +15766,8 @@ Checkbox styles
// Indeterminate
.#{$prefix}--checkbox:indeterminate:focus + .#{$prefix}--checkbox-label::before,
.#{$prefix}--checkbox-label[data-contained-checkbox-state='mixed'].#{$prefix}--checkbox-label__focus::before {
// Must use box-shadow for appearance of multiple borders with rounded corners.
box-shadow: 0 0 0 2px $inverse-01, 0 0 0 4px $focus;

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
// `highlightText` is a CSS2 system color to help improve colors in HCM
outline: 1px solid highlightText;
outline-offset: 2px;
}
outline: 2px solid $focus;
outline-offset: 1px;
}

//----------------------------------------------
Expand Down
9 changes: 1 addition & 8 deletions packages/components/src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,6 @@
}
}

.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--btn--ghost:focus svg,
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--btn--ghost:hover svg {
fill: $icon-01;
}

.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger:focus {
border-color: $focus;

Expand Down Expand Up @@ -224,8 +219,6 @@
.#{$prefix}--btn__icon,
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--btn--ghost:hover
.#{$prefix}--btn__icon {
fill: $icon-01;

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
Expand All @@ -238,7 +231,7 @@

.#{$prefix}--btn--ghost.#{$prefix}--btn--icon-only
.#{$prefix}--btn__icon
path,
path:not([data-icon-path]),
.#{$prefix}--btn--ghost.#{$prefix}--btn--icon-only .#{$prefix}--btn__icon {
fill: $icon-01;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/button/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
}

.#{$prefix}--btn__icon,
.#{$prefix}--btn__icon path {
.#{$prefix}--btn__icon path:not([data-icon-path]) {
fill: $icon-color;
}
}
Expand Down
12 changes: 2 additions & 10 deletions packages/components/src/components/checkbox/_checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,8 @@
// Indeterminate
.#{$prefix}--checkbox:indeterminate:focus + .#{$prefix}--checkbox-label::before,
.#{$prefix}--checkbox-label[data-contained-checkbox-state='mixed'].#{$prefix}--checkbox-label__focus::before {
// Must use box-shadow for appearance of multiple borders with rounded corners.
box-shadow: 0 0 0 2px $inverse-01, 0 0 0 4px $focus;

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
// `highlightText` is a CSS2 system color to help improve colors in HCM
outline: 1px solid highlightText;
outline-offset: 2px;
}
outline: 2px solid $focus;
outline-offset: 1px;
}

//----------------------------------------------
Expand Down

0 comments on commit 6e66f09

Please sign in to comment.