@carbon/styles 1.22.0 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/styles.css +25 -6
- package/css/styles.min.css +1 -1
- package/package.json +2 -2
- package/scss/components/combo-box/_combo-box.scss +5 -0
- package/scss/components/form/_form.scss +4 -0
- package/scss/components/toggle/_toggle.scss +4 -2
- package/scss/components/toggletip/_toggletip.scss +1 -1
- package/scss/utilities/_hide-at-breakpoint.scss +0 -10
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/styles",
|
|
3
3
|
"description": "Styles for the Carbon Design System",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.23.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"scss/**/*.css",
|
|
60
60
|
"css/**/*.css"
|
|
61
61
|
],
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "6234f2b1304e340345fff3935342f80a1e36e08e"
|
|
63
63
|
}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
@use '../list-box';
|
|
9
9
|
@use '../../config' as *;
|
|
10
10
|
@use '../../theme' as *;
|
|
11
|
+
@use '../../utilities/focus-outline' as *;
|
|
11
12
|
|
|
12
13
|
/// Combo box styles
|
|
13
14
|
/// @access public
|
|
@@ -31,6 +32,10 @@
|
|
|
31
32
|
border-bottom-color: $border-subtle;
|
|
32
33
|
}
|
|
33
34
|
|
|
35
|
+
.#{$prefix}--combo-box--input--focus.#{$prefix}--text-input {
|
|
36
|
+
@include focus-outline('outline');
|
|
37
|
+
}
|
|
38
|
+
|
|
34
39
|
.#{$prefix}--combo-box .#{$prefix}--list-box__field,
|
|
35
40
|
.#{$prefix}--combo-box.#{$prefix}--list-box[data-invalid]
|
|
36
41
|
.#{$prefix}--list-box__field,
|
|
@@ -79,7 +79,8 @@
|
|
|
79
79
|
.#{$prefix}--toggle__switch,
|
|
80
80
|
.#{$prefix}--toggle__button:not(:disabled):active
|
|
81
81
|
+ .#{$prefix}--toggle__label
|
|
82
|
-
.#{$prefix}--toggle__switch
|
|
82
|
+
.#{$prefix}--toggle__switch,
|
|
83
|
+
.#{$prefix}--toggle:active .#{$prefix}--toggle__switch {
|
|
83
84
|
box-shadow: 0 0 0 1px $focus-inset, 0 0 0 3px $focus;
|
|
84
85
|
}
|
|
85
86
|
|
|
@@ -193,7 +194,8 @@
|
|
|
193
194
|
.#{$prefix}--toggle__switch,
|
|
194
195
|
.#{$prefix}--toggle__button:not(:disabled):active
|
|
195
196
|
+ .#{$prefix}--toggle__label
|
|
196
|
-
.#{$prefix}--toggle__switch
|
|
197
|
+
.#{$prefix}--toggle__switch,
|
|
198
|
+
.#{$prefix}--toggle:active .#{$prefix}--toggle__switch {
|
|
197
199
|
@include high-contrast-mode('focus');
|
|
198
200
|
}
|
|
199
201
|
}
|
|
@@ -4,40 +4,30 @@
|
|
|
4
4
|
// Mixins that can be used to hide elements only at specific breakpoints.
|
|
5
5
|
// Helpful for when you would like to hide elements outside of a Grid context
|
|
6
6
|
@mixin hide-at-sm {
|
|
7
|
-
padding: 2rem 1rem;
|
|
8
|
-
background: #8a3ffc;
|
|
9
7
|
@include breakpoint-between('sm', 'md') {
|
|
10
8
|
display: none;
|
|
11
9
|
}
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
@mixin hide-at-md {
|
|
15
|
-
padding: 2rem 1rem;
|
|
16
|
-
background: #4589ff;
|
|
17
13
|
@include breakpoint-between('md', 'lg') {
|
|
18
14
|
display: none;
|
|
19
15
|
}
|
|
20
16
|
}
|
|
21
17
|
|
|
22
18
|
@mixin hide-at-lg {
|
|
23
|
-
padding: 2rem 1rem;
|
|
24
|
-
background: #42be65;
|
|
25
19
|
@include breakpoint-between('lg', 'xlg') {
|
|
26
20
|
display: none;
|
|
27
21
|
}
|
|
28
22
|
}
|
|
29
23
|
|
|
30
24
|
@mixin hide-at-xlg {
|
|
31
|
-
padding: 2rem 1rem;
|
|
32
|
-
background: #f1c21b;
|
|
33
25
|
@include breakpoint-between('xlg', 'max') {
|
|
34
26
|
display: none;
|
|
35
27
|
}
|
|
36
28
|
}
|
|
37
29
|
|
|
38
30
|
@mixin hide-at-max {
|
|
39
|
-
padding: 2rem 1rem;
|
|
40
|
-
background: #da1e28;
|
|
41
31
|
@include breakpoint-up('max') {
|
|
42
32
|
display: none;
|
|
43
33
|
}
|