Skip to content

Commit

Permalink
fix: use button instead of div for navbar toggle button (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 authored Feb 14, 2021
1 parent 7fc57aa commit e9a3efb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<div class="container">
<div class="navbar__inner">
<div class="navbar__items">
<div class="navbar__toggle" role="button">
<button class="navbar__toggle" type="button">
<svg
xmlns="http://www.w3.org/2000/svg"
width="30"
Expand All @@ -90,7 +90,7 @@
d="M4 7h22M4 15h22M4 23h22"
></path>
</svg>
</div>
</button>
<a class="navbar__brand" href="#">
<img
class="navbar__logo"
Expand Down
3 changes: 3 additions & 0 deletions packages/core/styles/components/navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@
cursor: pointer;
display: none;
margin-right: 0.5rem;
border: 0;
background: 0 0;

This comment has been minimized.

Copy link
@Simek

Simek Feb 15, 2021

Contributor

If the goal here was to reset the background position the background-position property should be used.

If the goal was to remove background completely using none is recommended over 0 and the second 0 is redundant.

padding: 0;

@media (--ifm-narrow-window) {
display: inherit;
Expand Down

0 comments on commit e9a3efb

Please sign in to comment.