Skip to content

Commit

Permalink
Interaction state hover for input (#2131)
Browse files Browse the repository at this point in the history
* πŸ’„ Use apply-hover and transition in item

* πŸ’„ Set loudness correctly
  • Loading branch information
RasmusKjeldgaard authored Mar 25, 2022
1 parent 5b56b1a commit 66831eb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
@use '../form-field-inputs.shared' as shared;
@use "~@kirbydesign/core/src/scss/interaction-state";
@use "~@kirbydesign/core/src/scss/utils";

:host {
@include interaction-state.transition(background-color);
@include interaction-state.apply-hover() {
background-color: interaction-state.get-state-color('white', 's');
cursor: text;
}

&[type='number'] {
//fallback
appearance: textfield;
Expand Down

0 comments on commit 66831eb

Please sign in to comment.