Skip to content

Commit 6cc0de1

Browse files
committed
Better input focus color for invalid inputs
1 parent b6080c5 commit 6cc0de1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
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
- Small adjusts for menu components
3+
- Better input focus color for invalid inputs
34

45
## 1.1.3 - 2025-02-17
56
- Remove --btn-text-align from .btn

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@
7070
outline: var(--input-outline-size, 2px) solid var(--color-selected-dark);
7171
}
7272

73+
&:focus-visible:user-invalid {
74+
outline: var(--input-outline-size, 2px) solid rgb(from var(--color-negative) r g b / .2);
75+
}
76+
7377
.field_with_errors & {
7478
border-color: var(--color-negative);
7579
}

0 commit comments

Comments
 (0)