Skip to content

Commit

Permalink
feat: add interaction states for date pickers
Browse files Browse the repository at this point in the history
  • Loading branch information
inikolova authored and joneff committed Mar 21, 2021
1 parent 75f8141 commit d1479f5
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion packages/default/scss/datetime/_theme.scss
Expand Up @@ -231,7 +231,43 @@
}

//Universal rendering
.k-dateinput {
.k-datepicker {
&.k-state-hover {
.k-picker-wrap {
@include fill(
$datetime-hovered-text,
$datetime-hovered-bg,
$datetime-hovered-border
);
}
}

&.k-state-focus {
.k-picker-wrap {
@include fill(
$datetime-focused-text,
$datetime-focused-bg,
$datetime-focused-border
);
@include box-shadow($datetime-focused-shadow);
}
}

&.k-invalid {
.k-picker-wrap {
border-color: $invalid-border;
}
}

&.k-invalid.k-state-focus {
.k-picker-wrap {
@include box-shadow($invalid-shadow);
}
}
}

.k-dateinput,
.k-daterangepicker {
&.k-state-hover {
.k-dateinput-wrap {
@include fill(
Expand Down

0 comments on commit d1479f5

Please sign in to comment.