Skip to content

Commit

Permalink
fix(a11y): add outlines to all dropdown buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ppom authored and mrflos committed Jun 24, 2024
1 parent fef6a1f commit cff7edb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 4 additions & 2 deletions styles/margot-base/components/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -197,5 +197,7 @@
}
}



#yw-container .dropdown-toggle:focus {
/* reset bootstrap: a11y: all buttons should have an outline */
outline: 5px auto;
}
6 changes: 1 addition & 5 deletions styles/margot-base/partials/navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,6 @@

/* ----------------- */
.navbar-btn { margin: 0 } /* reset bootstrap */
#yw-topnav .btn, #yw-topnav .btn:hover, #yw-topnav .btn:focus {
outline: none;
}

#yw-topnav .navbar-nav > li > a.btn {
margin: 0 .5rem;
}
Expand Down Expand Up @@ -420,4 +416,4 @@

#LoginModal input[name="login"], .login-form [type="submit"], .login-form-dropdown [type="submit"] {
margin-top: 1rem;
}
}

0 comments on commit cff7edb

Please sign in to comment.