aboutsummaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
authorAnna Koskinen <Ansku@users.noreply.github.com>2020-08-19 09:48:37 +0300
committerGitHub <noreply@github.com>2020-08-19 09:48:37 +0300
commita6a1e1d71a0ef671666e42ad50931323dd3f9b7a (patch)
tree25fb44a4f785d160adf2291b16abb23f6c5e2058 /themes
parent067637342de0b2ba86fb7a228a8918aa17f7bcf3 (diff)
downloadvaadin-framework-a6a1e1d71a0ef671666e42ad50931323dd3f9b7a.tar.gz
vaadin-framework-a6a1e1d71a0ef671666e42ad50931323dd3f9b7a.zip
Only remove caption margin from the first visible tab. (#12078)
Fixes #10437
Diffstat (limited to 'themes')
-rw-r--r--themes/src/main/themes/VAADIN/themes/valo/components/_tabsheet.scss8
1 files changed, 8 insertions, 0 deletions
diff --git a/themes/src/main/themes/VAADIN/themes/valo/components/_tabsheet.scss b/themes/src/main/themes/VAADIN/themes/valo/components/_tabsheet.scss
index e0fa665020..2b98bcbbaf 100644
--- a/themes/src/main/themes/VAADIN/themes/valo/components/_tabsheet.scss
+++ b/themes/src/main/themes/VAADIN/themes/valo/components/_tabsheet.scss
@@ -246,6 +246,10 @@ $v-tabsheet-content-animation-enabled: $v-animations-enabled !default;
margin-left: 0;
}
+ &:not([aria-hidden="true"]) ~ td .v-caption {
+ margin-left: round($v-unit-size/2);
+ }
+
&:focus {
outline: none;
@@ -443,6 +447,10 @@ $v-tabsheet-content-animation-enabled: $v-animations-enabled !default;
margin-left: 0;
}
+ :not([aria-hidden="true"]) ~ td .v-caption {
+ margin-left: $tab-spacing or first-number($v-border) * -1;
+ }
+
@if $frame-inactive-tabs {
.#{$primary-stylename}-tabitem .v-caption {
border-color: first-color(valo-border($color: $v-app-background-color, $strength: 0.5));