@carbon/styles 1.77.1 → 1.77.2

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.1",
4
+ "version": "1.77.2",
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.1",
45
- "@carbon/grid": "^11.32.1",
46
- "@carbon/layout": "^11.30.1",
44
+ "@carbon/feature-flags": "^0.24.0",
45
+ "@carbon/grid": "^11.32.2",
46
+ "@carbon/layout": "^11.30.2",
47
47
  "@carbon/motion": "^11.25.0",
48
- "@carbon/themes": "^11.48.1",
49
- "@carbon/type": "^11.36.1",
48
+ "@carbon/themes": "^11.48.2",
49
+ "@carbon/type": "^11.36.2",
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": "538413f7766dea6ef4bc4eb5e752b0119779f10a"
78
+ "gitHead": "5c8f7e2a47c2bfb2865f1f2f4efe55b26f45ad5c"
79
79
  }
@@ -13,7 +13,6 @@
13
13
  'enable-experimental-tile-contrast': false,
14
14
  'enable-v12-tile-radio-icons': false,
15
15
  'enable-v12-structured-list-visible-icons': false,
16
- 'enable-dialog-element': false,
17
16
  )
18
17
  !default
19
18
  );
@@ -25,7 +25,6 @@
25
25
  @use 'data-table/skeleton';
26
26
  @use 'data-table/sort';
27
27
  @use 'date-picker';
28
- @use 'dialog';
29
28
  @use 'dropdown';
30
29
  @use 'file-uploader';
31
30
  @use 'fluid-combo-box';
@@ -18,14 +18,16 @@
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 *;
21
22
 
22
23
  /// Dialog styles
23
24
  /// @access public
24
25
  /// @group dialog
25
26
  @mixin dialog {
26
27
  .#{$prefix}--dialog {
28
+ /* size */
27
29
  padding: 0;
28
- border: none;
30
+ border: 1px solid $border-subtle-01;
29
31
  background-color: $layer;
30
32
  color: $text-primary;
31
33
  inline-size: 48rem;
@@ -99,6 +101,15 @@
99
101
  min-block-size: $spacing-09;
100
102
  }
101
103
 
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
+
102
113
  /* Transition the :backdrop when the dialog modal is promoted to the top layer */
103
114
  .#{$prefix}--dialog::backdrop {
104
115
  background-color: $overlay;
@@ -7,7 +7,6 @@
7
7
 
8
8
  @use '../button';
9
9
  @use '../../config' as *;
10
- @use '../../feature-flags' as *;
11
10
  @use '../../breakpoint' as *;
12
11
  @use '../../motion' as *;
13
12
  @use '../../spacing' as *;
@@ -24,57 +23,34 @@
24
23
  /// Modal styles
25
24
  /// @access public
26
25
  /// @group modal
27
- @mixin modal(
28
- $enable-experimental-focus-wrap-without-sentinels: false,
29
- $enable-dialog-element: false
30
- ) {
26
+ @mixin modal {
31
27
  .#{$prefix}--modal {
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;
28
+ position: fixed;
29
+ z-index: z('modal');
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: center;
33
+ background-color: $overlay;
34
+ block-size: 100vh;
35
+ content: '';
36
+ inline-size: 100vw;
37
+ inset-block-start: 0;
38
+ inset-inline-start: 0;
39
+ opacity: 0;
40
+ transition:
41
+ opacity $duration-moderate-02 motion(exit, expressive),
42
+ visibility 0ms linear $duration-moderate-02;
43
+ visibility: hidden;
44
+
45
+ &.is-visible {
46
+ opacity: 1;
53
47
  transition:
54
- opacity $duration-moderate-02 motion(exit, expressive),
55
- visibility 0ms linear $duration-moderate-02;
56
- visibility: hidden;
57
- }
48
+ opacity $duration-moderate-02 motion(entrance, expressive),
49
+ visibility 0ms linear;
50
+ visibility: inherit;
58
51
 
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
- }
52
+ @media screen and (prefers-reduced-motion: reduce) {
53
+ transition: none;
78
54
  }
79
55
  }
80
56