@ostack.tech/ui 0.16.1 → 0.16.2

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.
@@ -2204,18 +2204,18 @@ a > .o-ui-code {
2204
2204
  transition-timing-function: var(--o-ui-transition-timing-function);
2205
2205
  }
2206
2206
  }
2207
- .o-ui-feedback:not(:first-child), .o-ui-feedback__list:not(:first-child, :empty) {
2207
+ .o-ui-feedback:not(:first-child), .o-ui-feedback__list:not(:first-child) {
2208
2208
  margin-top: var(--o-ui-space) !important;
2209
2209
  }
2210
+ :is(.o-ui-feedback, .o-ui-feedback__list:not(:empty), .o-ui-helper-text) + :is(.o-ui-feedback, .o-ui-feedback__list) {
2211
+ margin-top: calc(var(--o-ui-space) * 0.5) !important;
2212
+ }
2210
2213
  [data-has-code] ~ .o-ui-feedback {
2211
2214
  margin-left: calc(40px + var(--o-ui-space) * 0.5);
2212
2215
  }
2213
2216
  [data-has-code] ~ .o-ui-feedback__list {
2214
2217
  padding-left: calc(40px + var(--o-ui-space) * 0.5);
2215
2218
  }
2216
- :is(.o-ui-feedback, .o-ui-feedback__list, .o-ui-helper-text) + :is(.o-ui-feedback, .o-ui-feedback__list) {
2217
- margin-top: calc(var(--o-ui-space) * 0.5);
2218
- }
2219
2219
  .o-ui-feedback__list {
2220
2220
  width: fit-content;
2221
2221
  margin: 0;
@@ -2574,8 +2574,8 @@ a > .o-ui-code {
2574
2574
  .o-ui-helper-text:not(:first-child) {
2575
2575
  margin-top: var(--o-ui-space) !important;
2576
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);
2577
+ :is(.o-ui-helper-text, .o-ui-feedback__list:not(:empty), .o-ui-feedback) + .o-ui-helper-text {
2578
+ margin-top: calc(var(--o-ui-space) * 0.5) !important;
2579
2579
  }
2580
2580
  [data-has-code] ~ .o-ui-helper-text {
2581
2581
  margin-left: calc(40px + var(--o-ui-space) * 0.5);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ostack.tech/ui",
3
3
  "description": "ostack/UI component library.",
4
- "version": "0.16.1",
4
+ "version": "0.16.2",
5
5
  "homepage": "https://ui.ostack.tech/",
6
6
  "author": {
7
7
  "name": "Opensoft",
@@ -23,10 +23,15 @@
23
23
 
24
24
  // Top margin
25
25
  &:not(:first-child),
26
- &__list:not(:first-child, :empty) {
26
+ &__list:not(:first-child) {
27
27
  margin-top: $feedback-margin-top !important;
28
28
  }
29
29
 
30
+ // Spacing between feedbacks/helper texts
31
+ :is(&, &__list:not(:empty), .#{$prefix}helper-text) + :is(&, &__list) {
32
+ margin-top: $feedback-gap-y !important;
33
+ }
34
+
30
35
  // Left margin due to control code
31
36
  [data-has-code] ~ & {
32
37
  margin-left: $feedback-has-code-margin-left;
@@ -38,11 +43,6 @@
38
43
  padding-left: $feedback-has-code-margin-left;
39
44
  }
40
45
 
41
- // Spacing between feedbacks/helper texts
42
- :is(&, &__list, .#{$prefix}helper-text) + :is(&, &__list) {
43
- margin-top: $feedback-gap-y;
44
- }
45
-
46
46
  // List
47
47
  &__list {
48
48
  width: fit-content;
@@ -22,8 +22,8 @@
22
22
  }
23
23
 
24
24
  // Spacing between feedbacks/helper texts
25
- :is(&, .#{$prefix}feedback__list, .#{$prefix}feedback) + & {
26
- margin-top: $helper-text-gap-y;
25
+ :is(&, .#{$prefix}feedback__list:not(:empty), .#{$prefix}feedback) + & {
26
+ margin-top: $helper-text-gap-y !important;
27
27
  }
28
28
 
29
29
  // Left margin due to control code