@carbon/styles 1.74.0 → 1.75.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/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.74.0",
4
+ "version": "1.75.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -75,5 +75,5 @@
75
75
  "scss/**/*.css",
76
76
  "css/**/*.css"
77
77
  ],
78
- "gitHead": "9815eaf3bbe004ffe8243299dd6470d5313fb38a"
78
+ "gitHead": "fd1b7ab668473833c250488e0f7fc4feb55f1d88"
79
79
  }
@@ -42,9 +42,21 @@
42
42
  align-items: center;
43
43
  margin: 0;
44
44
  block-size: convert.to-rem(16px);
45
- inline-size: auto;
46
45
  inset-block-start: convert.to-rem(13px);
47
- inset-inline-start: $spacing-05;
46
+
47
+ // For the main label
48
+ &:not(.#{$prefix}--text-area__label-counter) {
49
+ inline-size: auto;
50
+ inset-inline-end: auto;
51
+ inset-inline-start: $spacing-05;
52
+ }
53
+
54
+ // For the counter
55
+ &.#{$prefix}--text-area__label-counter {
56
+ inline-size: auto;
57
+ inset-inline-end: $spacing-05;
58
+ inset-inline-start: auto;
59
+ }
48
60
  }
49
61
 
50
62
  .#{$prefix}--text-area--fluid .#{$prefix}--label::-webkit-scrollbar,
@@ -33,9 +33,21 @@
33
33
  align-items: center;
34
34
  margin: 0;
35
35
  block-size: convert.to-rem(16px);
36
- inline-size: calc(100% - 2rem);
37
36
  inset-block-start: convert.to-rem(13px);
38
- inset-inline-start: $spacing-05;
37
+
38
+ // For the main label
39
+ &:not(.#{$prefix}--text-input__label-counter) {
40
+ inline-size: auto;
41
+ inset-inline-end: auto;
42
+ inset-inline-start: $spacing-05;
43
+ }
44
+
45
+ // For the counter
46
+ &.#{$prefix}--text-input__label-counter {
47
+ inline-size: auto;
48
+ inset-inline-end: $spacing-05;
49
+ inset-inline-start: auto;
50
+ }
39
51
  }
40
52
 
41
53
  .#{$prefix}--text-input--fluid .#{$prefix}--label::-webkit-scrollbar,
@@ -56,6 +56,7 @@
56
56
  }
57
57
 
58
58
  .#{$prefix}--menu--shown {
59
+ overflow: visible;
59
60
  opacity: 1;
60
61
  }
61
62
 
@@ -235,6 +235,7 @@
235
235
  }
236
236
 
237
237
  .#{$prefix}--text-area__label-wrapper {
238
+ position: relative;
238
239
  display: flex;
239
240
  justify-content: space-between;
240
241
  inline-size: 100%;
@@ -534,9 +534,5 @@
534
534
  display: flex;
535
535
  justify-content: space-between;
536
536
  inline-size: 100%;
537
-
538
- .#{$prefix}--text-input__label-counter {
539
- align-self: end;
540
- }
541
537
  }
542
538
  }