@ostack.tech/ui 0.16.0 → 0.16.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/dist/ostack-ui.css +7 -1
- package/package.json +1 -1
- package/scss/components/Feedback/_Feedback-variables.scss +1 -1
- package/scss/components/Feedback/_Feedback.scss +6 -2
- package/scss/components/HelperText/_HelperText-variables.scss +1 -0
- package/scss/components/HelperText/_HelperText.scss +6 -0
package/dist/ostack-ui.css
CHANGED
|
@@ -2213,7 +2213,7 @@ a > .o-ui-code {
|
|
|
2213
2213
|
[data-has-code] ~ .o-ui-feedback__list {
|
|
2214
2214
|
padding-left: calc(40px + var(--o-ui-space) * 0.5);
|
|
2215
2215
|
}
|
|
2216
|
-
.o-ui-feedback
|
|
2216
|
+
:is(.o-ui-feedback, .o-ui-feedback__list, .o-ui-helper-text) + :is(.o-ui-feedback, .o-ui-feedback__list) {
|
|
2217
2217
|
margin-top: calc(var(--o-ui-space) * 0.5);
|
|
2218
2218
|
}
|
|
2219
2219
|
.o-ui-feedback__list {
|
|
@@ -2221,6 +2221,9 @@ a > .o-ui-code {
|
|
|
2221
2221
|
margin: 0;
|
|
2222
2222
|
padding: 0;
|
|
2223
2223
|
}
|
|
2224
|
+
.o-ui-feedback__list:empty {
|
|
2225
|
+
display: none;
|
|
2226
|
+
}
|
|
2224
2227
|
.o-ui-feedback__list > .o-ui-feedback {
|
|
2225
2228
|
margin-left: calc(var(--o-ui-space) * 3.5) !important;
|
|
2226
2229
|
text-align: left !important;
|
|
@@ -2571,6 +2574,9 @@ a > .o-ui-code {
|
|
|
2571
2574
|
.o-ui-helper-text:not(:first-child) {
|
|
2572
2575
|
margin-top: var(--o-ui-space) !important;
|
|
2573
2576
|
}
|
|
2577
|
+
:is(.o-ui-helper-text, .o-ui-feedback__list, .o-ui-feedback) + .o-ui-helper-text {
|
|
2578
|
+
margin-top: calc(var(--o-ui-space) * 0.5);
|
|
2579
|
+
}
|
|
2574
2580
|
[data-has-code] ~ .o-ui-helper-text {
|
|
2575
2581
|
margin-left: calc(40px + var(--o-ui-space) * 0.5);
|
|
2576
2582
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
@use "../../scss/utils/spacing" as *;
|
|
5
5
|
|
|
6
6
|
$feedback-margin-top: $helper-text-margin-top !default;
|
|
7
|
-
$feedback-gap-y:
|
|
7
|
+
$feedback-gap-y: $helper-text-gap-y !default;
|
|
8
8
|
|
|
9
9
|
$feedback-font-size: $helper-text-font-size !default;
|
|
10
10
|
$feedback-line-height: $helper-text-line-height !default;
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
padding-left: $feedback-has-code-margin-left;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
// Spacing between feedbacks
|
|
42
|
-
&
|
|
41
|
+
// Spacing between feedbacks/helper texts
|
|
42
|
+
:is(&, &__list, .#{$prefix}helper-text) + :is(&, &__list) {
|
|
43
43
|
margin-top: $feedback-gap-y;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
margin: 0;
|
|
50
50
|
padding: 0;
|
|
51
51
|
|
|
52
|
+
&:empty {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
52
56
|
@if $feedback-text-align == right {
|
|
53
57
|
:not(
|
|
54
58
|
.#{$prefix}checkbox__root,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
@use "../../scss/utils/spacing" as *;
|
|
4
4
|
|
|
5
5
|
$helper-text-margin-top: $field-spacing-y !default;
|
|
6
|
+
$helper-text-gap-y: spacing(0.5) !default;
|
|
6
7
|
|
|
7
8
|
$helper-text-font-size: var(--#{$prefix}font-size-xs) !default;
|
|
8
9
|
$helper-text-line-height: var(--#{$prefix}line-height-xs) !default;
|
|
@@ -16,10 +16,16 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
// Top margin
|
|
19
20
|
&:not(:first-child) {
|
|
20
21
|
margin-top: $helper-text-margin-top !important;
|
|
21
22
|
}
|
|
22
23
|
|
|
24
|
+
// Spacing between feedbacks/helper texts
|
|
25
|
+
:is(&, .#{$prefix}feedback__list, .#{$prefix}feedback) + & {
|
|
26
|
+
margin-top: $helper-text-gap-y;
|
|
27
|
+
}
|
|
28
|
+
|
|
23
29
|
// Left margin due to control code
|
|
24
30
|
[data-has-code] ~ & {
|
|
25
31
|
margin-left: $helper-text-has-code-margin-left;
|