From e172df26f25a46ebc673fc016ee7dad2b4defa97 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Sat, 4 Mar 2017 18:19:09 +0800 Subject: Add tabindex note to the dropdowns docs --- docs/components.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/components.html') diff --git a/docs/components.html b/docs/components.html index dddf425..76e6c60 100644 --- a/docs/components.html +++ b/docs/components.html @@ -688,7 +688,7 @@

Dropdown menus component is built entirely in CSS. It is triggered by :focus event.

-

Add a container element with the class dropdown. And add a focusable element with the classname dropdown-toggle for the button and a menu component right next to it. If the dropdown is close to the right edge of the browser, you can add the class dropdown-right to the container to prevent it appearing off screen.

+

Add a container element with the class dropdown. And add a focusable element with the classname dropdown-toggle for the button and a menu component right next to it. You also need to add tabindex to make the buttons focusable. If the dropdown is close to the right edge of the browser, you can add the class dropdown-right to the container to prevent it appearing off screen.

Also, you can implement your JS to interact with the dropdown menus by adding the class active to the dropdown.

-- cgit v1.3.1-23-gd82d