-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into remove-test-tooltipdefinition-story
- Loading branch information
Showing
28 changed files
with
883 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
14 | ||
14.17 |
Binary file renamed
BIN
+9.89 KB
...-sass-npm-4.0.2-1b03f439c2-d057ae32b9.zip → ...-sass-npm-4.1.0-1cb9c71c6a-9b1e155398.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+6.62 KB
...graph-npm-2.2.4-9db3c88043-bd19d96eb1.zip → ...graph-npm-2.2.5-a708c6d60c-283b6e5a38.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// Copyright IBM Corp. 2021 | ||
// | ||
// This source code is licensed under the Apache-2.0 license found in the | ||
// LICENSE file in the root directory of this source tree. | ||
// | ||
|
||
/// Adds box shadow | ||
/// @access public | ||
/// @example @include box-shadow; | ||
/// @group utilities | ||
@mixin box-shadow { | ||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// Copyright IBM Corp. 2021 | ||
// | ||
// This source code is licensed under the Apache-2.0 license found in the | ||
// LICENSE file in the root directory of this source tree. | ||
// | ||
@use 'component-reset'; | ||
|
||
/// Resets button styles | ||
/// @access public | ||
/// @param {Bool} $width [true] - Sets width to 100% if true | ||
/// @example @include button-reset($width: false); | ||
/// @group utilities | ||
@mixin button-reset($width: true) { | ||
@include component-reset; | ||
|
||
display: inline-block; | ||
padding: 0; | ||
border: 0; | ||
appearance: none; | ||
background: none; | ||
cursor: pointer; | ||
|
||
@if ($width == true) { | ||
width: 100%; | ||
} | ||
|
||
&::-moz-focus-inner { | ||
border: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// Copyright IBM Corp. 2018, 2018 | ||
// | ||
// This source code is licensed under the Apache-2.0 license found in the | ||
// LICENSE file in the root directory of this source tree. | ||
// | ||
|
||
/// Resets default browser styling | ||
/// @access public | ||
/// @group utilities | ||
@mixin component-reset { | ||
box-sizing: border-box; | ||
padding: 0; | ||
border: 0; | ||
margin: 0; | ||
font-family: inherit; | ||
font-size: 100%; | ||
vertical-align: baseline; | ||
|
||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: inherit; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// | ||
// Copyright IBM Corp. 2021 | ||
// | ||
// This source code is licensed under the Apache-2.0 license found in the | ||
// LICENSE file in the root directory of this source tree. | ||
// | ||
|
||
/// Adds outline styles depending on specific type | ||
/// @access public | ||
/// @param {String} $type ['border'] - Type of outline from: `border`, `blurred`, `outline`, `invalid`, `reset` | ||
/// @example @include focus-outline('outline'); | ||
/// @group utilities | ||
@mixin focus-outline($type: 'border') { | ||
@if ($type == 'border') { | ||
outline: 1px solid $focus; | ||
|
||
@media screen and (prefers-contrast) { | ||
outline-style: dotted; | ||
} | ||
} | ||
|
||
@if ($type == 'blurred') { | ||
box-shadow: 0 0 0 3px $focus; | ||
outline: 1px solid transparent; | ||
} | ||
|
||
@if ($type == 'outline') { | ||
outline: 2px solid $focus; | ||
outline-offset: -2px; | ||
|
||
@media screen and (prefers-contrast) { | ||
outline-style: dotted; | ||
} | ||
} | ||
|
||
@if ($type == 'outline-compat') { | ||
box-sizing: border-box; | ||
border: 2px solid $focus; | ||
|
||
@media screen and (prefers-contrast) { | ||
border-style: dotted; | ||
} | ||
} | ||
|
||
@if ($type == 'invalid') { | ||
outline: 2px solid $support-error; | ||
outline-offset: -2px; | ||
|
||
@media screen and (prefers-contrast) { | ||
outline-style: dotted; | ||
} | ||
} | ||
|
||
@if ($type == 'reset') { | ||
outline: 2px solid transparent; | ||
outline-offset: -2px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// Copyright IBM Corp. 2021 | ||
// | ||
// This source code is licensed under the Apache-2.0 license found in the | ||
// LICENSE file in the root directory of this source tree. | ||
// | ||
|
||
/// Windows HCM Mixin | ||
/// @access public | ||
/// @example @include high-contrast-mode; | ||
/// @group utilities | ||
/// Set HCM styles at the end of each file to ensure they are not overwritten | ||
@mixin high-contrast-mode($type: '') { | ||
@media screen and (-ms-high-contrast: active), | ||
(forced-colors: active), | ||
(prefers-contrast) { | ||
@if ($type == 'icon-fill') { | ||
fill: ButtonText; | ||
} | ||
|
||
@if ($type == 'focus') { | ||
color: Highlight; | ||
outline: 1px solid Highlight; | ||
} | ||
|
||
@if ($type == 'outline') { | ||
outline: 1px solid transparent; | ||
} | ||
|
||
@if ($type == 'disabled') { | ||
color: GrayText; | ||
fill: GrayText; | ||
} | ||
|
||
@content; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
// | ||
// Copyright IBM Corp. 2021 | ||
// | ||
// This source code is licensed under the Apache-2.0 license found in the | ||
// LICENSE file in the root directory of this source tree. | ||
// | ||
|
||
@mixin content-visible { | ||
opacity: 1; | ||
visibility: inherit; | ||
} | ||
|
||
@mixin content-hidden { | ||
opacity: 0; | ||
visibility: hidden; | ||
} | ||
|
||
@keyframes hide-feedback { | ||
0% { | ||
@include content-visible; | ||
} | ||
100% { | ||
@include content-hidden; | ||
} | ||
} | ||
|
||
@keyframes show-feedback { | ||
0% { | ||
@include content-hidden; | ||
} | ||
100% { | ||
@include content-visible; | ||
} | ||
} | ||
|
||
@keyframes skeleton { | ||
0% { | ||
opacity: 0.3; | ||
transform: scaleX(0); | ||
transform-origin: left; | ||
} | ||
20% { | ||
opacity: 1; | ||
transform: scaleX(1); | ||
transform-origin: left; | ||
} | ||
28% { | ||
transform: scaleX(1); | ||
transform-origin: right; | ||
} | ||
51% { | ||
transform: scaleX(0); | ||
transform-origin: right; | ||
} | ||
58% { | ||
transform: scaleX(0); | ||
transform-origin: right; | ||
} | ||
82% { | ||
transform: scaleX(1); | ||
transform-origin: right; | ||
} | ||
83% { | ||
transform: scaleX(1); | ||
transform-origin: left; | ||
} | ||
96% { | ||
transform: scaleX(0); | ||
transform-origin: left; | ||
} | ||
100% { | ||
opacity: 0.3; | ||
transform: scaleX(0); | ||
transform-origin: left; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// Copyright IBM Corp. 2021 | ||
// | ||
// This source code is licensed under the Apache-2.0 license found in the | ||
// LICENSE file in the root directory of this source tree. | ||
// | ||
|
||
/// Adds placeholder text color | ||
/// @access public | ||
/// @example @include placeholder-colors; | ||
/// @group utilities | ||
@mixin placeholder-colors { | ||
color: $text-placeholder; | ||
opacity: 1; | ||
} |
Oops, something went wrong.