Skip to content

Commit 32933f6

Browse files
author
Joshua Stübner
committed
feat(ui): update required input styles
1 parent c809f66 commit 32933f6

File tree

5 files changed

+27
-18
lines changed

5 files changed

+27
-18
lines changed

packages/ui/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
111
## 2.1.5 (2025-12-12)
212

313
### fixes

packages/ui/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"type": "git",
1313
"url": "https://github.com/nordcode-agency/nordcode/tree/main/packages/ui"
1414
},
15-
"version": "2.1.5",
15+
"version": "2.1.6",
1616
"publishConfig": {
1717
"access": "public"
1818
},
@@ -72,8 +72,9 @@
7272
"build": "pnpm run '/^lib:.*/'"
7373
},
7474
"devDependencies": {
75+
"baseline-browser-mapping": "^2.9.6",
7576
"browserslist": "^4.28.0",
76-
"lightningcss": "^1.30.2",
77-
"browserslist-config-baseline": "^0.5.0"
77+
"browserslist-config-baseline": "^0.5.0",
78+
"lightningcss": "^1.30.2"
7879
}
7980
}

packages/ui/src/styles/components/inputs/base.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@
6363
background-color: var(--_input-hover-background);
6464
}
6565

66-
&[required] {
67-
border-inline-start-width: var(--border-width-thick);
68-
}
69-
7066
&::placeholder {
7167
color: var(--color-text-subtle);
7268
}

packages/ui/src/styles/components/inputs/fields.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,9 @@
8181
margin-block-start: var(--control-spacing-far, 0.75em);
8282
}
8383
}
84+
85+
:where(.nc-input-required-mark) {
86+
color: var(--color-status-danger-emphasis);
87+
font-size: 1.25em;
88+
}
8489
}

pnpm-lock.yaml

Lines changed: 8 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)