Adding focus handling for buttons and inputs

This commit is contained in:
Stamm
2020-03-12 13:48:19 +01:00
parent 36cee2c1f7
commit aaabaa5250
7 changed files with 149 additions and 87 deletions

View File

@ -2,6 +2,8 @@
background: $button-color;
color: $on-button;
// @include focus-outline();
&:hover {
background: darken($button-color, 5%);
}
@ -17,10 +19,18 @@
.btn {
@include Elevation(1);
@include ElevationTransition(0.2s);
&:focus {
@include Elevation(6);
}
@include btn-flat();
}
.fab {
@include Elevation(8);
@include ElevationTransition(0.2s);
&:focus {
@include Elevation(16);
}
background: $button-color;
}
}