@carbon/styles 1.14.0 → 1.15.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.
@@ -10,6 +10,7 @@
10
10
  @use '../../../breakpoint' as *;
11
11
  @use '../../../config' as *;
12
12
  @use '../../../motion' as *;
13
+ @use '../../../spacing' as *;
13
14
  @use '../../../theme' as *;
14
15
  @use '../../../type' as *;
15
16
  @use '../../../utilities/button-reset';
@@ -42,6 +43,9 @@
42
43
  border: rem(1px) solid transparent;
43
44
  transition: background-color $duration-fast-02,
44
45
  border-color $duration-fast-02;
46
+ @include breakpoint-down('md') {
47
+ min-width: $spacing-09;
48
+ }
45
49
  }
46
50
 
47
51
  .#{$prefix}--header__action
@@ -137,6 +141,9 @@
137
141
  text-decoration: none;
138
142
  transition: border-color $duration-fast-02;
139
143
  user-select: none;
144
+ @include breakpoint-down('md') {
145
+ padding: 0 $spacing-05;
146
+ }
140
147
  }
141
148
 
142
149
  a.#{$prefix}--header__name:focus {
@@ -296,7 +303,7 @@
296
303
  .#{$prefix}--header__menu-title[aria-expanded='true'] {
297
304
  // Note: needs to be higher than menu. Adding 1 here instead of moving to
298
305
  // the next level.
299
- z-index: #{z('header') + 1};
306
+ z-index: #{z('header') + 2};
300
307
  background-color: $layer;
301
308
  color: $text-secondary;
302
309
  }
@@ -316,7 +323,7 @@
316
323
  .#{$prefix}--header__menu-title[aria-expanded='true']
317
324
  + .#{$prefix}--header__menu {
318
325
  position: absolute;
319
- z-index: z('header');
326
+ z-index: #{z('header') + 1};
320
327
  bottom: 0;
321
328
  left: 0;
322
329
  display: flex;