fix(tab-button): accesibility outline

This commit is contained in:
Manu Mtz.-Almeida
2018-02-13 14:07:45 +01:00
parent e68622e074
commit 7ba33ddc6e
3 changed files with 23 additions and 15 deletions

View File

@@ -2,10 +2,7 @@
@import "./tab-button.ios.vars";
.tab-button-ios {
@include padding($tab-button-ios-padding-top, $tab-button-ios-padding-end, $tab-button-ios-padding-bottom, $tab-button-ios-padding-start);
max-width: $tab-button-ios-max-width;
min-height: 100%;
font-size: $tab-button-ios-font-size;
color: $tab-button-ios-text-color;
@@ -13,6 +10,14 @@
fill: $tab-button-ios-icon-color;
}
.tab-button-ios .tab-cover {
@include padding(
$tab-button-ios-padding-top,
$tab-button-ios-padding-end,
$tab-button-ios-padding-bottom,
$tab-button-ios-padding-start);
}
.enable-hover .tab-button-ios:hover,
.tab-button-ios.tab-selected {
color: $tab-button-ios-text-color-active;

View File

@@ -5,6 +5,15 @@
// --------------------------------------------------
.tab-button-md {
max-width: 168px;
font-weight: $tab-button-md-font-weight;
color: $tab-button-md-text-color;
fill: $tab-button-md-icon-color;
}
.tab-button-md .tab-cover {
@include padding(
$tab-button-md-padding-top,
$tab-button-md-padding-end,
@@ -12,14 +21,6 @@
$tab-button-md-padding-start);
display: flex;
max-width: 168px;
height: 100%;
font-weight: $tab-button-md-font-weight;
color: $tab-button-md-text-color;
fill: $tab-button-md-icon-color;
}
.scrollable .tab-button-md {

View File

@@ -13,9 +13,8 @@ ion-tab-button {
overflow: hidden;
flex: 1;
flex-direction: column;
align-items: center;
justify-content: space-between;
height: 100%;
border: 0;
@@ -26,6 +25,9 @@ ion-tab-button {
}
.tab-cover {
@include margin(0);
@include padding(0);
display: flex;
flex-direction: column;
@@ -36,7 +38,7 @@ ion-tab-button {
height: 100%;
border: 0;
outline: none;
//outline: none;
color: inherit;
background: transparent;
cursor: pointer;