Skip to content

Commit 40581ee

Browse files
committed
Remove field_with_errors from reset.css
1 parent 52b7b74 commit 40581ee

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## [Unreleased]
22
- Remove input outline on user-invalid focus-visible
3+
- Remove field_with_errors from reset.css
34

45
## 1.1.4 - 2025-02-18
56
- Small adjusts for menu components

app/assets/stylesheets/css-zero/reset.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -379,14 +379,6 @@ turbo-frame {
379379
display: contents;
380380
}
381381

382-
/*
383-
Make input validation wrapper become pseudo-box by default.
384-
*/
385-
386-
.field_with_errors {
387-
display: contents;
388-
}
389-
390382
/*
391383
Enables size interpolation to allow animation.
392384
*/

lib/generators/css_zero/add/templates/app/assets/stylesheets/input.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@
5353
}
5454
}
5555

56-
:is(.checkbox, .radio) {
57-
accent-color: var(--color-primary); transform: scale(1.2);
56+
.invalid-feedback {
57+
display: none;
5858
}
5959

60-
.range {
61-
accent-color: var(--color-primary);
60+
:is(.checkbox, .radio) {
61+
transform: scale(1.2);
6262
}
6363

64-
.invalid-feedback {
65-
display: none;
64+
:is(.checkbox, .radio, .range) {
65+
accent-color: var(--color-primary);
6666
}
6767

6868
:is(.input, .checkbox, .radio, .range) {
@@ -75,6 +75,6 @@
7575
}
7676

7777
.field_with_errors & {
78-
border-color: var(--color-negative);
78+
border-color: var(--color-negative); display: contents;
7979
}
8080
}

0 commit comments

Comments
 (0)