0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-03-10 10:29:23 +01:00

Merge pull request #14673 from twbs/restore_sr_friendly_collapse

More screenreader friendly Collapse, Take 2
This commit is contained in:
Mark Otto 2014-09-24 10:38:01 -07:00
commit 2858208038
3 changed files with 8 additions and 2 deletions

View File

@ -17,8 +17,9 @@
.collapse { .collapse {
display: none; display: none;
visibility: hidden;
&.in { display: block; } &.in { display: block; visibility: visible; }
tr&.in { display: table-row; } tr&.in { display: table-row; }
tbody&.in { display: table-row-group; } tbody&.in { display: table-row-group; }
} }
@ -27,5 +28,7 @@
position: relative; position: relative;
height: 0; height: 0;
overflow: hidden; overflow: hidden;
.transition(height .35s ease); .transition-property(~"height, visibility");
.transition-duration(.35s);
.transition-timing-function(ease);
} }

View File

@ -67,6 +67,7 @@
&.collapse { &.collapse {
display: block !important; display: block !important;
visibility: visible !important;
height: auto !important; height: auto !important;
padding-bottom: 0; // Override default setting padding-bottom: 0; // Override default setting
overflow: visible !important; overflow: visible !important;

View File

@ -223,9 +223,11 @@
.tab-content { .tab-content {
> .tab-pane { > .tab-pane {
display: none; display: none;
visibility: hidden;
} }
> .active { > .active {
display: block; display: block;
visibility: visible;
} }
} }