Skip to content

Commit 2858208

Browse files
committed
Merge pull request twbs#14673 from twbs/restore_sr_friendly_collapse
More screenreader friendly Collapse, Take 2
2 parents 7311781 + 6cfd176 commit 2858208

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

less/component-animations.less

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717

1818
.collapse {
1919
display: none;
20+
visibility: hidden;
2021

21-
&.in { display: block; }
22+
&.in { display: block; visibility: visible; }
2223
tr&.in { display: table-row; }
2324
tbody&.in { display: table-row-group; }
2425
}
@@ -27,5 +28,7 @@
2728
position: relative;
2829
height: 0;
2930
overflow: hidden;
30-
.transition(height .35s ease);
31+
.transition-property(~"height, visibility");
32+
.transition-duration(.35s);
33+
.transition-timing-function(ease);
3134
}

less/navbar.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767

6868
&.collapse {
6969
display: block !important;
70+
visibility: visible !important;
7071
height: auto !important;
7172
padding-bottom: 0; // Override default setting
7273
overflow: visible !important;

less/navs.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,11 @@
223223
.tab-content {
224224
> .tab-pane {
225225
display: none;
226+
visibility: hidden;
226227
}
227228
> .active {
228229
display: block;
230+
visibility: visible;
229231
}
230232
}
231233

0 commit comments

Comments
 (0)