@odx/ui 4.5.0 → 4.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @odx/ui
2
2
 
3
+ ## 4.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 50fad0b: Required marker for switch and for checkbox components
8
+
3
9
  ## 4.5.0
4
10
 
5
11
  ### Minor Changes
package/core-theme.css CHANGED
@@ -3698,6 +3698,15 @@ html body .odx-fs-italic {
3698
3698
  margin: 0;
3699
3699
  padding: 0;
3700
3700
  }
3701
+ .odx-checkbox__required {
3702
+ font-size: calc(var(--odx-typography-base-size) * 1);
3703
+ color: var(--odx-c-error-text);
3704
+ margin-left: 2px;
3705
+ vertical-align: top;
3706
+ }
3707
+ .odx-checkbox.is-disabled .odx-checkbox__required {
3708
+ color: var(--odx-control-color-disabled);
3709
+ }
3701
3710
 
3702
3711
  .odx-chip {
3703
3712
  font-weight: var(--odx-typography-font-weight-medium);
@@ -6563,6 +6572,15 @@ html body .odx-fs-italic {
6563
6572
  margin: 0;
6564
6573
  padding: 0;
6565
6574
  }
6575
+ .odx-switch__required {
6576
+ font-size: calc(var(--odx-typography-base-size) * 1);
6577
+ color: var(--odx-c-error-text);
6578
+ margin-left: 2px;
6579
+ vertical-align: top;
6580
+ }
6581
+ .odx-switch.is-disabled .odx-switch__required {
6582
+ color: var(--odx-control-color-disabled);
6583
+ }
6566
6584
 
6567
6585
  .odx-tab-bar-item {
6568
6586
  margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -121,4 +121,16 @@
121
121
  padding: 0;
122
122
  }
123
123
  }
124
+
125
+ &__required {
126
+ @include typography.font-size(0);
127
+
128
+ color: var(--odx-c-error-text);
129
+ margin-left: 2px;
130
+ vertical-align: top;
131
+
132
+ #{$root}.is-disabled & {
133
+ color: var(--odx-control-color-disabled);
134
+ }
135
+ }
124
136
  }
@@ -160,4 +160,16 @@
160
160
  padding: 0;
161
161
  }
162
162
  }
163
+
164
+ &__required {
165
+ @include typography.font-size(0);
166
+
167
+ color: var(--odx-c-error-text);
168
+ margin-left: 2px;
169
+ vertical-align: top;
170
+
171
+ #{$root}.is-disabled & {
172
+ color: var(--odx-control-color-disabled);
173
+ }
174
+ }
163
175
  }