Skip to content

Commit

Permalink
feat(Input): box-shadow active state
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinsawicki committed Nov 28, 2024
1 parent ff3b7a8 commit f51aab0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ $base-class: 'input';
&:hover {
border-color: var(--input-promo-border-hover);
}

&.#{$base-class}--focused,
&.#{$base-class}--focused:hover {
box-shadow: var(--state-active-field);
}
}

&--focused,
Expand Down
4 changes: 2 additions & 2 deletions packages/react-components/src/foundations/shadow.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
--shadow-fixed-top: 0 -2px 10px rgb(19 19 23 / 18%);
--shadow-fixed-bottom: 0 2px 10px rgb(19 19 23 / 18%);
--focus-ring-inner: inset 0 0 1px 2px var(--action-primary-default);
--state-active-field: 0 0 0 4px rgb(var(--action-primary-default) / 15%);
--state-active-field: 0 0 0 4px rgb(0 89 225 / 15%);
}

.lc-dark-theme {
Expand Down Expand Up @@ -55,5 +55,5 @@
--shadow-fixed-top: 0 -2px 10px rgb(19 19 23 / 18%);
--shadow-fixed-bottom: 0 2px 10px rgb(19 19 23 / 18%);
--focus-ring-inner: inset 0 0 1px 2px var(--action-primary-default);
--state-active-field: 0 0 0 4px rgb(var(--action-primary-default) / 25%);
--state-active-field: 0 0 0 4px rgb(104 175 255 / 25%);
}

0 comments on commit f51aab0

Please sign in to comment.