Skip to content

Commit

Permalink
Merge branch 'master' into dropdown-warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Oct 12, 2020
2 parents 9c5f764 + 8d0c35e commit abaf61a
Show file tree
Hide file tree
Showing 25 changed files with 269 additions and 55 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@
"perf",
"refactor",
"revert",
"test"
"test",
"style"
]
]
}
Expand Down
94 changes: 88 additions & 6 deletions packages/components/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -14755,6 +14755,11 @@ Code snippet styles
transition: max-height $duration--moderate-01 motion(standard, productive);
}

.#{$prefix}--snippet--multi.#{$prefix}--snippet--wraptext pre {
white-space: pre-wrap;
word-wrap: break-word;
}

// closed pre
.#{$prefix}--snippet--multi .#{$prefix}--snippet-container pre {
padding-right: $carbon--spacing-08;
Expand Down Expand Up @@ -15165,7 +15170,8 @@ Content switcher styles

&:focus {
z-index: 3;
box-shadow: inset 0 0 0 2px $focus;
border-color: $focus;
box-shadow: inset 0 0 0 2px $focus, inset 0 0 0 3px $ui-01;
}

&:hover {
Expand Down Expand Up @@ -22639,10 +22645,6 @@ Search styles
}
}

.#{$prefix}--search-input[disabled] ~ .#{$prefix}--search-magnifier {
fill: $disabled;
}

.#{$prefix}--search--light .#{$prefix}--search-input {
background: $field-02;
}
Expand Down Expand Up @@ -22778,6 +22780,24 @@ Search styles
}
}

.#{$prefix}--search--disabled .#{$prefix}--search-close {
outline: none;
cursor: not-allowed;

&:hover {
background-color: transparent;
border-bottom-color: transparent;
}

&:hover::before {
background-color: transparent;
}
}

.#{$prefix}--search--disabled svg {
fill: $disabled;
}

.#{$prefix}--search-close:focus,
.#{$prefix}--search-close:active {
&::before {
Expand Down Expand Up @@ -25001,6 +25021,13 @@ Tile styles

&:focus {
@include focus-outline('outline');

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
outline: 3px solid transparent;
outline-offset: -3px;
}
}
}

Expand Down Expand Up @@ -25084,6 +25111,13 @@ Tile styles
transform-origin: center;
transition: $duration--fast-02 motion(standard, productive);
fill: $ui-05;

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
// `ButtonText` is a CSS2 system color to help improve colors in HCM
fill: ButtonText;
}
}

&:hover {
Expand Down Expand Up @@ -25147,6 +25181,13 @@ Tile styles
> .#{$prefix}--tile__checkmark
svg {
fill: $ui-05;

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
// `ButtonText` is a CSS2 system color to help improve colors in HCM
fill: ButtonText;
}
}

.#{$prefix}--tile-content {
Expand Down Expand Up @@ -25691,7 +25732,7 @@ Toggle styles
.#{$prefix}--toggle-input--small:disabled:checked
+ .#{$prefix}--toggle-input__label
.#{$prefix}--toggle__check {
fill: $disabled-02;
fill: $disabled-01;
}

//----------------------------------------------
Expand Down Expand Up @@ -26903,6 +26944,13 @@ UI shell header
.#{$prefix}--header__action:focus {
border-color: $shell-header-focus;
outline: none;

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
outline: 3px solid transparent;
outline-offset: -3px;
}
}

.#{$prefix}--header__action:active {
Expand Down Expand Up @@ -27035,6 +27083,13 @@ UI shell header
color: $shell-header-text-01;
border-color: $shell-header-focus;
outline: none;

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
outline: 3px solid transparent;
outline-offset: -3px;
}
}

a.#{$prefix}--header__menu-item:hover > svg,
Expand Down Expand Up @@ -28018,6 +28073,13 @@ UI shell side nav

.#{$prefix}--side-nav__submenu:focus {
@include focus-outline('outline');

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
outline: 3px solid transparent;
outline-offset: -3px;
}
}

.#{$prefix}--side-nav__submenu-title {
Expand Down Expand Up @@ -28149,6 +28211,13 @@ UI shell side nav
a.#{$prefix}--side-nav__link:focus,
.#{$prefix}--side-nav a.#{$prefix}--header__menu-item:focus {
@include focus-outline('outline');

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
outline: 3px solid transparent;
outline-offset: -3px;
}
}

a.#{$prefix}--side-nav__link[aria-current='page'],
Expand Down Expand Up @@ -28194,6 +28263,12 @@ UI shell side nav
width: mini-units(2);
height: mini-units(2);
fill: $shell-side-nav-icon-01;

@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
// `ButtonText` is a CSS2 system color to help improve colors in HCM
fill: ButtonText;
}
}

.#{$prefix}--side-nav__icon > svg.#{$prefix}--side-nav-collapse-icon {
Expand Down Expand Up @@ -28306,6 +28381,13 @@ UI shell side nav
.#{$prefix}--header__menu-arrow,
.#{$prefix}--side-nav .#{$prefix}--header__menu-arrow {
fill: $shell-side-nav-text-01;

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
// `ButtonText` is a CSS2 system color to help improve colors in HCM
fill: ButtonText;
}
}
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@
transition: max-height $duration--moderate-01 motion(standard, productive);
}

.#{$prefix}--snippet--multi.#{$prefix}--snippet--wraptext pre {
white-space: pre-wrap;
word-wrap: break-word;
}

// closed pre
.#{$prefix}--snippet--multi .#{$prefix}--snippet-container pre {
padding-right: $carbon--spacing-08;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@

&:focus {
z-index: 3;
box-shadow: inset 0 0 0 2px $focus;
border-color: $focus;
box-shadow: inset 0 0 0 2px $focus, inset 0 0 0 3px $ui-01;
}

&:hover {
Expand Down
22 changes: 18 additions & 4 deletions packages/components/src/components/search/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@
}
}

.#{$prefix}--search-input[disabled] ~ .#{$prefix}--search-magnifier {
fill: $disabled;
}

.#{$prefix}--search--light .#{$prefix}--search-input {
background: $field-02;
}
Expand Down Expand Up @@ -211,6 +207,24 @@
}
}

.#{$prefix}--search--disabled .#{$prefix}--search-close {
outline: none;
cursor: not-allowed;

&:hover {
background-color: transparent;
border-bottom-color: transparent;
}

&:hover::before {
background-color: transparent;
}
}

.#{$prefix}--search--disabled svg {
fill: $disabled;
}

.#{$prefix}--search-close:focus,
.#{$prefix}--search-close:active {
&::before {
Expand Down
21 changes: 21 additions & 0 deletions packages/components/src/components/tile/_tile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@

&:focus {
@include focus-outline('outline');

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
outline: 3px solid transparent;
outline-offset: -3px;
}
}
}

Expand Down Expand Up @@ -113,6 +120,13 @@
transform-origin: center;
transition: $duration--fast-02 motion(standard, productive);
fill: $ui-05;

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
// `ButtonText` is a CSS2 system color to help improve colors in HCM
fill: ButtonText;
}
}

&:hover {
Expand Down Expand Up @@ -176,6 +190,13 @@
> .#{$prefix}--tile__checkmark
svg {
fill: $ui-05;

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
// `ButtonText` is a CSS2 system color to help improve colors in HCM
fill: ButtonText;
}
}

.#{$prefix}--tile-content {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/toggle/_toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
.#{$prefix}--toggle-input--small:disabled:checked
+ .#{$prefix}--toggle-input__label
.#{$prefix}--toggle__check {
fill: $disabled-02;
fill: $disabled-01;
}

//----------------------------------------------
Expand Down
14 changes: 14 additions & 0 deletions packages/components/src/components/ui-shell/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@
.#{$prefix}--header__action:focus {
border-color: $shell-header-focus;
outline: none;

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
outline: 3px solid transparent;
outline-offset: -3px;
}
}

.#{$prefix}--header__action:active {
Expand Down Expand Up @@ -198,6 +205,13 @@
color: $shell-header-text-01;
border-color: $shell-header-focus;
outline: none;

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
outline: 3px solid transparent;
outline-offset: -3px;
}
}

a.#{$prefix}--header__menu-item:hover > svg,
Expand Down
27 changes: 27 additions & 0 deletions packages/components/src/components/ui-shell/_side-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,13 @@

.#{$prefix}--side-nav__submenu:focus {
@include focus-outline('outline');

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
outline: 3px solid transparent;
outline-offset: -3px;
}
}

.#{$prefix}--side-nav__submenu-title {
Expand Down Expand Up @@ -508,6 +515,13 @@
a.#{$prefix}--side-nav__link:focus,
.#{$prefix}--side-nav a.#{$prefix}--header__menu-item:focus {
@include focus-outline('outline');

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
outline: 3px solid transparent;
outline-offset: -3px;
}
}

a.#{$prefix}--side-nav__link[aria-current='page'],
Expand Down Expand Up @@ -553,6 +567,12 @@
width: mini-units(2);
height: mini-units(2);
fill: $shell-side-nav-icon-01;

@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
// `ButtonText` is a CSS2 system color to help improve colors in HCM
fill: ButtonText;
}
}

.#{$prefix}--side-nav__icon > svg.#{$prefix}--side-nav-collapse-icon {
Expand Down Expand Up @@ -665,6 +685,13 @@
.#{$prefix}--header__menu-arrow,
.#{$prefix}--side-nav .#{$prefix}--header__menu-arrow {
fill: $shell-side-nav-text-01;

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
// `ButtonText` is a CSS2 system color to help improve colors in HCM
fill: ButtonText;
}
}
}

Expand Down
Loading

0 comments on commit abaf61a

Please sign in to comment.