Summary Files Commits Branches @commit @diff @stats
path: root / docs / components.html
diff options
context:
space:
mode:
Commit1c7685d9742a600279d3a66a3b2efcdb393b7a85 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-03-06 23:09:30 +0800
Committer
 GitHub <noreply@github.com>
2017-03-06 23:09:30 +0800
Filesa330454e59bda730fd9d25af40aa57bad6e51d5f /docs/components.html
Spectre-Dark-Gruvbox-1c7685d9742a600279d3a66a3b2efcdb393b7a85.tar
Spectre-Dark-Gruvbox-1c7685d9742a600279d3a66a3b2efcdb393b7a85.tar.gz
Spectre-Dark-Gruvbox-1c7685d9742a600279d3a66a3b2efcdb393b7a85.zip
Parent7caa884a89aea0fd25682bba52cd5217c9e31b29 (diff)
Parent7404b2ba7058600a090ac1ce4bc44300b2746c7f (diff)
Merge pull request #157 from picturepan2/hotfix/a-number-of-fixes v0.2.7
Hotfix/a number of fixes
1 files changed, 2 insertions, 2 deletions
-rw-r--r--docs/components.html4
diff --git a/docs/components.html b/docs/components.html
index dddf425..9c4186b 100644
--- a/docs/components.html
+++ b/docs/components.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="author" content="https://github.com/picturepan2/" />
<title>Components - Spectre.css</title>
@@ -688,7 +688,7 @@
</div>
<section class="notes">
<p>Dropdown menus component is built entirely in CSS. It is triggered by <code>:focus</code> event.</p>
- <p>Add a container element with the class <code>dropdown</code>. And add a focusable element with the classname <code>dropdown-toggle</code> for the button and a <code>menu</code> component right next to it. If the dropdown is close to the right edge of the browser, you can add the class <code>dropdown-right</code> to the container to prevent it appearing off screen.</p>
+ <p>Add a container element with the class <code>dropdown</code>. And add a focusable element with the classname <code>dropdown-toggle</code> for the button and a <code>menu</code> component right next to it. You also need to add <code>tabindex</code> to make the buttons focusable. If the dropdown is close to the right edge of the browser, you can add the class <code>dropdown-right</code> to the container to prevent it appearing off screen.</p>
</section>
<section class="notes">
<p>Also, you can implement your JS to interact with the dropdown menus by adding the class <code>active</code> to the <code>dropdown</code>.</p>