@carbon/styles 1.9.0 → 1.10.0-rc.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.
@@ -53,6 +53,7 @@ describe('@carbon/styles/scss/type', () => {
53
53
  Array [
54
54
  "label-01",
55
55
  "helper-text-01",
56
+ "helper-text-02",
56
57
  "body-short-01",
57
58
  "body-short-02",
58
59
  "body-long-01",
@@ -8,6 +8,7 @@
8
8
  @use 'mixins' as *;
9
9
  @use 'vars' as *;
10
10
  @use '../../config' as *;
11
+ @use '../../breakpoint' as *;
11
12
  @use '../../motion' as *;
12
13
  @use '../../spacing' as *;
13
14
  @use '../../theme' as *;
@@ -52,6 +53,14 @@
52
53
  @include type-style('body-compact-01');
53
54
 
54
55
  color: $text-secondary;
56
+
57
+ @include breakpoint(md) {
58
+ max-width: 50ch;
59
+ }
60
+
61
+ @include breakpoint(lg) {
62
+ max-width: 80ch;
63
+ }
55
64
  }
56
65
 
57
66
  //----------------------------------------------------------------------------
@@ -12,6 +12,7 @@
12
12
  @use '../../utilities/convert' as *;
13
13
  @use '../../utilities/focus-outline' as *;
14
14
  @use '../../utilities/skeleton' as *;
15
+ @use '../..//utilities/button-reset';
15
16
 
16
17
  /// @type Number
17
18
  /// @access public
@@ -51,12 +52,44 @@ $input-label-weight: 400 !default;
51
52
  margin-bottom: 0;
52
53
  }
53
54
 
54
- .#{$prefix}--label .#{$prefix}--tooltip__trigger {
55
- // When tooltip trigger is put in form label the trigger button should fit in the size of label
56
- // https://github.com/IBM/carbon-components-react/issues/115
55
+ .#{$prefix}--label + .#{$prefix}--tooltip {
56
+ position: relative;
57
+ top: 0.2rem;
58
+ left: 0.5rem;
59
+ }
60
+
61
+ .#{$prefix}--label + .#{$prefix}--tooltip .#{$prefix}--tooltip__trigger {
62
+ @include button-reset.reset();
63
+
64
+ display: flex;
65
+ align-items: center;
66
+ justify-content: center;
57
67
  @include type-style('label-01');
58
68
  }
59
69
 
70
+ .#{$prefix}--label
71
+ + .#{$prefix}--tooltip
72
+ .#{$prefix}--tooltip__trigger:focus {
73
+ outline: 1px solid $focus;
74
+ }
75
+
76
+ .#{$prefix}--label + .#{$prefix}--tooltip .#{$prefix}--tooltip__trigger svg {
77
+ fill: $icon-secondary;
78
+ }
79
+
80
+ .#{$prefix}--label
81
+ + .#{$prefix}--tooltip
82
+ .#{$prefix}--tooltip__trigger
83
+ svg
84
+ :hover {
85
+ fill: $icon-primary;
86
+ }
87
+
88
+ .#{$prefix}--label + .#{$prefix}--toggletip {
89
+ top: 0.2rem;
90
+ left: 0.5rem;
91
+ }
92
+
60
93
  // Skeleton State
61
94
  .#{$prefix}--label.#{$prefix}--skeleton {
62
95
  @include skeleton;
@@ -21,6 +21,7 @@
21
21
  $caption-01,
22
22
  $label-01,
23
23
  $helper-text-01,
24
+ $helper-text-02,
24
25
  $body-short-01,
25
26
  $body-short-02,
26
27
  $body-long-01,
@@ -20,6 +20,7 @@
20
20
  appearance: none;
21
21
  background: none;
22
22
  cursor: pointer;
23
+ text-align: start;
23
24
 
24
25
  @if ($width == true) {
25
26
  width: 100%;