@nordcode/ui 2.1.5 → 2.1.6

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,3 +1,13 @@
1
+ ## 2.1.6 (2025-12-12)
2
+
3
+ ### fixes
4
+
5
+ - fix required checkboxes looking broken
6
+
7
+ ### features
8
+
9
+ - add style for required markers
10
+
1
11
  ## 2.1.5 (2025-12-12)
2
12
 
3
13
  ### fixes
package/out/complete.css CHANGED
@@ -2194,10 +2194,6 @@
2194
2194
  background-color: var(--_input-hover-background);
2195
2195
  }
2196
2196
 
2197
- :where(input, textarea, select, .nc-input)[required] {
2198
- border-inline-start-width: var(--border-width-thick);
2199
- }
2200
-
2201
2197
  :where(input, textarea, select, .nc-input)::placeholder {
2202
2198
  color: var(--color-text-subtle);
2203
2199
  }
@@ -2432,6 +2428,11 @@
2432
2428
  :where(.nc-radio-field, .nc-checkbox-field) > :not(:first-child) {
2433
2429
  margin-block-start: var(--control-spacing-far, .75em);
2434
2430
  }
2431
+
2432
+ :where(.nc-input-required-mark) {
2433
+ color: var(--color-status-danger-emphasis);
2434
+ font-size: 1.25em;
2435
+ }
2435
2436
  }
2436
2437
 
2437
2438
  @layer components.inputs-segmented {
@@ -1978,10 +1978,6 @@
1978
1978
  background-color: var(--_input-hover-background);
1979
1979
  }
1980
1980
 
1981
- :where(input, textarea, select, .nc-input)[required] {
1982
- border-inline-start-width: var(--border-width-thick);
1983
- }
1984
-
1985
1981
  :where(input, textarea, select, .nc-input)::placeholder {
1986
1982
  color: var(--color-text-subtle);
1987
1983
  }
@@ -2216,6 +2212,11 @@
2216
2212
  :where(.nc-radio-field, .nc-checkbox-field) > :not(:first-child) {
2217
2213
  margin-block-start: var(--control-spacing-far, .75em);
2218
2214
  }
2215
+
2216
+ :where(.nc-input-required-mark) {
2217
+ color: var(--color-status-danger-emphasis);
2218
+ font-size: 1.25em;
2219
+ }
2219
2220
  }
2220
2221
 
2221
2222
  @layer components.inputs-segmented {
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "type": "git",
13
13
  "url": "https://github.com/nordcode-agency/nordcode/tree/main/packages/ui"
14
14
  },
15
- "version": "2.1.5",
15
+ "version": "2.1.6",
16
16
  "publishConfig": {
17
17
  "access": "public"
18
18
  },
@@ -63,10 +63,6 @@
63
63
  background-color: var(--_input-hover-background);
64
64
  }
65
65
 
66
- &[required] {
67
- border-inline-start-width: var(--border-width-thick);
68
- }
69
-
70
66
  &::placeholder {
71
67
  color: var(--color-text-subtle);
72
68
  }
@@ -81,4 +81,9 @@
81
81
  margin-block-start: var(--control-spacing-far, 0.75em);
82
82
  }
83
83
  }
84
+
85
+ :where(.nc-input-required-mark) {
86
+ color: var(--color-status-danger-emphasis);
87
+ font-size: 1.25em;
88
+ }
84
89
  }