@carbon/styles 1.77.0 → 1.77.1
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/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.77.
|
|
4
|
+
"version": "1.77.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@carbon/colors": "^11.30.0",
|
|
44
|
-
"@carbon/feature-flags": "^0.24.
|
|
45
|
-
"@carbon/grid": "^11.32.
|
|
46
|
-
"@carbon/layout": "^11.30.
|
|
44
|
+
"@carbon/feature-flags": "^0.24.1",
|
|
45
|
+
"@carbon/grid": "^11.32.1",
|
|
46
|
+
"@carbon/layout": "^11.30.1",
|
|
47
47
|
"@carbon/motion": "^11.25.0",
|
|
48
|
-
"@carbon/themes": "^11.48.
|
|
49
|
-
"@carbon/type": "^11.36.
|
|
48
|
+
"@carbon/themes": "^11.48.1",
|
|
49
|
+
"@carbon/type": "^11.36.1",
|
|
50
50
|
"@ibm/plex": "6.0.0-next.6",
|
|
51
51
|
"@ibm/plex-mono": "0.0.3-alpha.0",
|
|
52
52
|
"@ibm/plex-sans": "0.0.3-alpha.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"scss/**/*.css",
|
|
76
76
|
"css/**/*.css"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "538413f7766dea6ef4bc4eb5e752b0119779f10a"
|
|
79
79
|
}
|
package/scss/_feature-flags.scss
CHANGED
|
@@ -18,16 +18,14 @@
|
|
|
18
18
|
@use '../../utilities/component-reset';
|
|
19
19
|
@use '../../utilities/focus-outline' as *;
|
|
20
20
|
@use '../../utilities/high-contrast-mode' as *;
|
|
21
|
-
@use '../../utilities/z-index' as *;
|
|
22
21
|
|
|
23
22
|
/// Dialog styles
|
|
24
23
|
/// @access public
|
|
25
24
|
/// @group dialog
|
|
26
25
|
@mixin dialog {
|
|
27
26
|
.#{$prefix}--dialog {
|
|
28
|
-
/* size */
|
|
29
27
|
padding: 0;
|
|
30
|
-
border:
|
|
28
|
+
border: none;
|
|
31
29
|
background-color: $layer;
|
|
32
30
|
color: $text-primary;
|
|
33
31
|
inline-size: 48rem;
|
|
@@ -101,15 +99,6 @@
|
|
|
101
99
|
min-block-size: $spacing-09;
|
|
102
100
|
}
|
|
103
101
|
|
|
104
|
-
.#{$prefix}--dialog__content {
|
|
105
|
-
padding: $spacing-05;
|
|
106
|
-
block-size: 100%;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.#{$prefix}--dialog--modal {
|
|
110
|
-
border: 1px solid transparent;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
102
|
/* Transition the :backdrop when the dialog modal is promoted to the top layer */
|
|
114
103
|
.#{$prefix}--dialog::backdrop {
|
|
115
104
|
background-color: $overlay;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
@use '../button';
|
|
9
9
|
@use '../../config' as *;
|
|
10
|
+
@use '../../feature-flags' as *;
|
|
10
11
|
@use '../../breakpoint' as *;
|
|
11
12
|
@use '../../motion' as *;
|
|
12
13
|
@use '../../spacing' as *;
|
|
@@ -23,34 +24,57 @@
|
|
|
23
24
|
/// Modal styles
|
|
24
25
|
/// @access public
|
|
25
26
|
/// @group modal
|
|
26
|
-
@mixin modal
|
|
27
|
+
@mixin modal(
|
|
28
|
+
$enable-experimental-focus-wrap-without-sentinels: false,
|
|
29
|
+
$enable-dialog-element: false
|
|
30
|
+
) {
|
|
27
31
|
.#{$prefix}--modal {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
32
|
+
// For modals using the native dialog element, the modal visibility is handled
|
|
33
|
+
// by the Dialog styles.
|
|
34
|
+
@if not(
|
|
35
|
+
enabled('enable-experimental-focus-wrap-without-sentinels') or
|
|
36
|
+
$enable-experimental-focus-wrap-without-sentinels or
|
|
37
|
+
enabled('enable-dialog-element') or
|
|
38
|
+
$enable-dialog-element
|
|
39
|
+
)
|
|
40
|
+
{
|
|
41
|
+
position: fixed;
|
|
42
|
+
z-index: z('modal');
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
background-color: $overlay;
|
|
47
|
+
block-size: 100vh;
|
|
48
|
+
content: '';
|
|
49
|
+
inline-size: 100vw;
|
|
50
|
+
inset-block-start: 0;
|
|
51
|
+
inset-inline-start: 0;
|
|
52
|
+
opacity: 0;
|
|
47
53
|
transition:
|
|
48
|
-
opacity $duration-moderate-02 motion(
|
|
49
|
-
visibility 0ms linear;
|
|
50
|
-
visibility:
|
|
54
|
+
opacity $duration-moderate-02 motion(exit, expressive),
|
|
55
|
+
visibility 0ms linear $duration-moderate-02;
|
|
56
|
+
visibility: hidden;
|
|
57
|
+
}
|
|
51
58
|
|
|
52
|
-
|
|
53
|
-
|
|
59
|
+
// For modals using the native dialog element, the modal visibility is handled
|
|
60
|
+
// by the Dialog styles.
|
|
61
|
+
@if not(
|
|
62
|
+
enabled('enable-experimental-focus-wrap-without-sentinels') or
|
|
63
|
+
$enable-experimental-focus-wrap-without-sentinels or
|
|
64
|
+
enabled('enable-dialog-element') or
|
|
65
|
+
$enable-dialog-element
|
|
66
|
+
)
|
|
67
|
+
{
|
|
68
|
+
&.is-visible {
|
|
69
|
+
opacity: 1;
|
|
70
|
+
transition:
|
|
71
|
+
opacity $duration-moderate-02 motion(entrance, expressive),
|
|
72
|
+
visibility 0ms linear;
|
|
73
|
+
visibility: inherit;
|
|
74
|
+
|
|
75
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
76
|
+
transition: none;
|
|
77
|
+
}
|
|
54
78
|
}
|
|
55
79
|
}
|
|
56
80
|
|