diff --git a/scss/_tabs.scss b/scss/_tabs.scss index 27505d4110..9c6390d821 100644 --- a/scss/_tabs.scss +++ b/scss/_tabs.scss @@ -89,7 +89,7 @@ @include flex(1); display: block; overflow: hidden; - + max-width: $tab-item-max-width; height: 100%; @@ -157,8 +157,9 @@ .tab-item .badge { position: absolute; padding: $tabs-badge-padding; - top: 2%; - right: 10%; + top: 4%; + right: 33%; // fallback + right: calc(50% - 26px); font-size: $tabs-badge-font-size; height: auto; line-height: $tabs-badge-font-size + 4; @@ -167,7 +168,7 @@ /* Navigational tab */ /* Active state for tab */ -.tab-item.active, +.tab-item.active, .tab-item:active { opacity: 1; diff --git a/scss/_variables.scss b/scss/_variables.scss index 66179f6c33..fa1ffbfd07 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -231,7 +231,7 @@ $tabs-height: 49px !default; $tabs-text-font-size: 14px !default; $tabs-text-font-size-side-icon: 12px !default; $tabs-icon-size: 32px !default; -$tabs-badge-padding: 2px 6px !default; +$tabs-badge-padding: 1px 6px !default; $tabs-badge-font-size: 12px !default; $tabs-text-font-size: 14px !default; diff --git a/test/html/tab-bars.html b/test/html/tab-bars.html index bb74960628..d4411f5421 100644 --- a/test/html/tab-bars.html +++ b/test/html/tab-bars.html @@ -25,7 +25,7 @@ - +