1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-22 13:13:03 +02:00

Remove explicit use of aria-hidden for offcanvas when closed (#35589)

Remove explicit use of aria-hidden & visibility for offcanvas when closed, handling it with css

Co-authored-by: GeoSot <geo.sotis@gmail.com>
Co-authored-by: Gaël Poupard <ffoodd@users.noreply.github.com>
This commit is contained in:
Patrick H. Lauke
2022-01-05 17:20:15 +00:00
committed by GitHub
parent f7a1b18320
commit 0d054bb0f1
3 changed files with 73 additions and 19 deletions

View File

@@ -12,6 +12,17 @@
outline: 0;
@include box-shadow($offcanvas-box-shadow);
@include transition(transform $offcanvas-transition-duration ease-in-out);
&.showing,
&.show:not(.hiding) {
transform: none;
}
&.showing,
&.hiding,
&.show {
visibility: visible;
}
}
.offcanvas-backdrop {
@@ -77,7 +88,3 @@
border-top: $offcanvas-border-width solid $offcanvas-border-color;
transform: translateY(100%);
}
.offcanvas.show {
transform: none;
}