fix: use Tabs overflow hidden instead of display none (#16013)

* fix nest table style

* use overflow hidden instead of display none
This commit is contained in:
zombieJ 2019-04-11 11:28:17 +08:00 committed by GitHub
parent df3e1b21d8
commit 049fc177b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,18 @@
@tab-prefix-cls: ~'@{ant-prefix}-tabs';
// Hidden content
.tabs-hidden-content() {
height: 0;
padding: 0 !important;
overflow: hidden;
opacity: 0;
pointer-events: none;
input {
visibility: hidden;
}
}
.@{tab-prefix-cls} {
.reset-component;
position: relative;
@ -231,13 +243,7 @@
}
> .@{tab-prefix-cls}-tabpane-inactive {
height: 0;
padding: 0 !important;
opacity: 0;
pointer-events: none;
input {
visibility: hidden;
}
.tabs-hidden-content();
}
&.@{tab-prefix-cls}-content-animated {
@ -397,7 +403,7 @@
transform: none !important;
}
> .@{tab-prefix-cls}-tabpane-inactive {
display: none;
.tabs-hidden-content();
}
}