Commit 017916fa by Ahsan Ulhaq

Visually hidden content accessible through keyboard

The "New Course" and "New Library" buttons reveal a form to add course or library.
When not displayed, these forms are still accessible to a keyboard user.
Added display: "none" in css so that contents are visually as well as via
keyboard inaccessible

AC-34
parent 6e47664c
...@@ -434,20 +434,18 @@ form { ...@@ -434,20 +434,18 @@ form {
// +Form - Create New Wrapper // +Form - Create New Wrapper
// ==================== // ====================
.wrapper-create-element { .wrapper-create-element {
height: 0; height: auto;
opacity: 0.0; opacity: 1.0;
pointer-events: none; pointer-events: auto;
overflow: hidden; overflow: hidden;
display: none;
&.animate { &.animate {
@include transition(opacity $tmg-f1 ease-in-out 0s, height $tmg-f1 ease-in-out 0s); @include transition(opacity $tmg-f1 ease-in-out 0s, height $tmg-f1 ease-in-out 0s);
} }
&.is-shown { &.is-shown {
height: auto; // define a specific height for the animating version of this UI to work properly display: block;
margin-bottom: $baseline;
opacity: 1.0;
pointer-events: auto;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment