Skip to content

Commit

Permalink
use visibility: hidden instead of display:none
Browse files Browse the repository at this point in the history
  • Loading branch information
LinAlSara committed Apr 19, 2020
1 parent 2203ee0 commit bc1ce75
Show file tree
Hide file tree
Showing 7 changed files with 224 additions and 8 deletions.
212 changes: 212 additions & 0 deletions dist/react-dropdown.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/react-dropdown.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/react-dropdown.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
</head>
<body>
<div id="container"></div>
<script type="text/javascript" src="bundle.js?9f8611ec1de2ffb0c68f"></script></body>
<script type="text/javascript" src="bundle.js?b671c4680cf7b962af41"></script></body>
</html>
5 changes: 3 additions & 2 deletions src/dropdown-menu-wrapper.styl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.dropdown-menu-wrapper {
display: none;
display: inline-block;
visibility: hidden;
position: absolute;
left: 0;
top: 100%;
Expand All @@ -24,7 +25,7 @@
}

.dropdown.open > .dropdown-menu-wrapper > .dropdown-menu {
display: inline-block;
visibility: visible;
border: 0;
box-shadow: none;
}
5 changes: 3 additions & 2 deletions src/dropdown-menu.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
top: 100%;
left: 0;
z-index: 1000;
display: none;
display: block;
visibility: hidden;
min-width: 0;
padding: 8px 0;
margin: 0;
Expand Down Expand Up @@ -111,5 +112,5 @@
}

.dropdown.open > .dropdown-menu {
display: block;
visibility: visible;
}

0 comments on commit bc1ce75

Please # to comment.