fix(buttons): Removed focus outline

This commit is contained in:
Federico Zivolo 2017-12-11 13:14:51 +01:00
parent 562fb9fedf
commit edf74ae08b
3 changed files with 2 additions and 17 deletions

View File

@ -17,8 +17,6 @@
color 0.2s $bmd-animation-curve-default;
will-change: box-shadow, transform;
@include undo-bs-tab-focus();
//--
// Colors
@ -53,7 +51,6 @@
// :focus - Avoid outline/boxShadow on buttons after mouseup
&.focus,
&:focus {
box-shadow: none; // disable box-shadow
outline: 0; // disable outline
}
}

View File

@ -203,17 +203,3 @@
@include bmd-raised-button-variant($btn-danger-color, $btn-danger-bg, $btn-danger-border-color);
}
}
@mixin undo-bs-tab-focus() {
// clear out the tab-focus() from BS
&,
&:active,
&.active {
&:focus,
&.focus {
//@include tab-focus();
outline: 0;
box-shadow: none;
}
}
}

View File

@ -17,6 +17,8 @@ $bmd-inverse-btn-focus-bg: rgba(#ccc, .15) !default; // spec: dark bg Hover: 15%
$bmd-inverse-btn-active-bg: rgba(#ccc, .25) !default; // spec: dark Pressed: 25% #CCCCCC
$bmd-inverse-btn-disabled: rgba($white, .30) !default; // spec: dark theme: Disabled text: 30% $white
$btn-focus-box-shadow: none;
$bmd-btn-fab-size: 3.5rem !default; // 56px
$bmd-btn-fab-size-sm: 2.5rem !default; // 40px
$bmd-btn-fab-font-size: 1.5rem !default; // 24px