@odx/ui 3.5.8 → 3.6.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @odx/ui
|
|
2
2
|
|
|
3
|
+
## 3.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8993495: Added possibility to display a subtitle for radio button component
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 4b50b62: Fixed behavior for disabled options in the selection component
|
|
12
|
+
|
|
3
13
|
## 3.5.8
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/core-theme.css
CHANGED
|
@@ -663,7 +663,7 @@ html body {
|
|
|
663
663
|
font-weight: var(--odx-typography-font-weight-normal);
|
|
664
664
|
letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
|
|
665
665
|
}
|
|
666
|
-
.odx-text--small, .odx-checkbox__subtitle {
|
|
666
|
+
.odx-text--small, .odx-radio-button__subtitle, .odx-checkbox__subtitle {
|
|
667
667
|
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
|
|
668
668
|
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
|
|
669
669
|
line-height: calc(var(--odx-vertical-rythm-base-size) * 0.8334);
|
|
@@ -4178,6 +4178,7 @@ html body .odx-fs-italic {
|
|
|
4178
4178
|
}
|
|
4179
4179
|
.odx-form-field__control > textarea {
|
|
4180
4180
|
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.25);
|
|
4181
|
+
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.25);
|
|
4181
4182
|
height: calc(var(--odx-vertical-rythm-base-size) * 3);
|
|
4182
4183
|
resize: vertical;
|
|
4183
4184
|
}
|
|
@@ -5418,11 +5419,13 @@ html body .odx-fs-italic {
|
|
|
5418
5419
|
font-weight: var(--odx-typography-font-weight-normal);
|
|
5419
5420
|
letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
|
|
5420
5421
|
border-radius: var(--odx-v-border-radius-controls);
|
|
5421
|
-
cursor: pointer;
|
|
5422
5422
|
-webkit-user-select: none;
|
|
5423
5423
|
-moz-user-select: none;
|
|
5424
5424
|
user-select: none;
|
|
5425
5425
|
}
|
|
5426
|
+
.odx-option:not(.is-disabled) {
|
|
5427
|
+
cursor: pointer;
|
|
5428
|
+
}
|
|
5426
5429
|
.odx-option:last-child {
|
|
5427
5430
|
margin-bottom: 0;
|
|
5428
5431
|
}
|
|
@@ -5430,7 +5433,7 @@ html body .odx-fs-italic {
|
|
|
5430
5433
|
background-color: var(--gray-50);
|
|
5431
5434
|
}
|
|
5432
5435
|
@media (hover: hover){
|
|
5433
|
-
.odx-option:hover {
|
|
5436
|
+
.odx-option:hover:not(.is-disabled) {
|
|
5434
5437
|
background-color: var(--gray-50);
|
|
5435
5438
|
}
|
|
5436
5439
|
}
|
|
@@ -5439,7 +5442,6 @@ html body .odx-fs-italic {
|
|
|
5439
5442
|
}
|
|
5440
5443
|
.odx-option.is-disabled {
|
|
5441
5444
|
color: var(--odx-control-color-disabled);
|
|
5442
|
-
pointer-events: none;
|
|
5443
5445
|
}
|
|
5444
5446
|
.odx-option > .odx-checkbox {
|
|
5445
5447
|
margin-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
@@ -5626,6 +5628,8 @@ html body .odx-fs-italic {
|
|
|
5626
5628
|
}
|
|
5627
5629
|
.odx-radio-button__content {
|
|
5628
5630
|
margin-left: calc(var(--odx-vertical-rythm-base-size) * 0.5);
|
|
5631
|
+
display: flex;
|
|
5632
|
+
flex-direction: column;
|
|
5629
5633
|
padding-left: 2px;
|
|
5630
5634
|
}
|
|
5631
5635
|
.odx-radio-button__content:empty {
|
package/package.json
CHANGED
|
@@ -11,15 +11,18 @@
|
|
|
11
11
|
@include typography.font-weight(normal);
|
|
12
12
|
|
|
13
13
|
border-radius: var(--odx-v-border-radius-controls);
|
|
14
|
-
cursor: pointer;
|
|
15
14
|
user-select: none;
|
|
16
15
|
|
|
16
|
+
&:not(.is-disabled) {
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
|
|
17
20
|
&:last-child {
|
|
18
21
|
margin-bottom: 0;
|
|
19
22
|
}
|
|
20
23
|
|
|
21
24
|
&.is-active,
|
|
22
|
-
&:hover {
|
|
25
|
+
&:hover:not(.is-disabled) {
|
|
23
26
|
background-color: var(--gray-50);
|
|
24
27
|
}
|
|
25
28
|
|
|
@@ -29,7 +32,6 @@
|
|
|
29
32
|
|
|
30
33
|
&.is-disabled {
|
|
31
34
|
color: var(--odx-control-color-disabled);
|
|
32
|
-
pointer-events: none;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
> .odx-checkbox {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
@use '../abstract/typography';
|
|
4
4
|
@use '../abstract/utils';
|
|
5
5
|
@use '../abstract/motion';
|
|
6
|
+
@use '../layout/typography' as *;
|
|
6
7
|
|
|
7
8
|
.odx-radio-button {
|
|
8
9
|
$root: &;
|
|
@@ -42,6 +43,10 @@
|
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
|
|
46
|
+
&__subtitle {
|
|
47
|
+
@extend .odx-text--small;
|
|
48
|
+
}
|
|
49
|
+
|
|
45
50
|
&__input {
|
|
46
51
|
@include utils.visually-hidden();
|
|
47
52
|
}
|
|
@@ -110,6 +115,8 @@
|
|
|
110
115
|
&__content {
|
|
111
116
|
@include dimensions.margin(0.5, left);
|
|
112
117
|
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-direction: column;
|
|
113
120
|
padding-left: 2px;
|
|
114
121
|
|
|
115
122
|
&:empty {
|