diff options
author | Patrick H. Lauke <redux@splintered.co.uk> | 2022-01-05 20:20:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 20:20:15 +0300 |
commit | 0d054bb0f1484dbc0c778d3643e96e37ff46d708 (patch) | |
tree | de1cbfd7831b1a8487e1fefe8312c9ed6b6cc215 /scss/_offcanvas.scss | |
parent | f7a1b183209affbec48af744006f330bac5ddd98 (diff) |
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>
Diffstat (limited to 'scss/_offcanvas.scss')
-rw-r--r-- | scss/_offcanvas.scss | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/scss/_offcanvas.scss b/scss/_offcanvas.scss index a089c2a081..5288fa9ce6 100644 --- a/scss/_offcanvas.scss +++ b/scss/_offcanvas.scss @@ -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; -} |