accessible-dropdown | accessible dropdown | Menu library

 by   sarbbottam HTML Version: Current License: MIT

kandi X-RAY | accessible-dropdown Summary

kandi X-RAY | accessible-dropdown Summary

accessible-dropdown is a HTML library typically used in User Interface, Menu applications. accessible-dropdown has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

accessible dropdown
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              accessible-dropdown has a low active ecosystem.
              It has 9 star(s) with 1 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 1 open issues and 12 have been closed. On average issues are closed in 5 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of accessible-dropdown is current.

            kandi-Quality Quality

              accessible-dropdown has no bugs reported.

            kandi-Security Security

              accessible-dropdown has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              accessible-dropdown is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              accessible-dropdown releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of accessible-dropdown
            Get all kandi verified functions for this library.

            accessible-dropdown Key Features

            No Key Features are available at this moment for accessible-dropdown.

            accessible-dropdown Examples and Code Snippets

            No Code Snippets are available at this moment for accessible-dropdown.

            Community Discussions

            QUESTION

            What is the right solution for the responsive design of an accessible dropdowm navigation menu with more than 4 items?
            Asked 2021-Jan-04 at 10:29

            I learned from Stephanie Eckles's CSS-Only Accessible Dropdown Navigation Menu. But her responsive design of that dropdowm navigation menu works only for a menu with less than 3 items, not for a menu with more than 4 items.

            I would like to keep that menu, but I do not know which solution for the menu with more than 4 items on the mobile phones, making it accessible and usable.

            Some articles said the side navigation menu with a hamburger icon isn't accessible and usable.

            At my site, on the mobile phone, the menu with more than 4 items overpassed the screen limit.

            I am not sure if these menus indicated are accessible and usable on a mobile phone:

            What about to keep that same menu and re-use one of these menus for the mobile phones?

            ...

            ANSWER

            Answered 2021-Jan-04 at 10:29

            A few bits to address here.

            Some articles said the side navigation menu with a hamburger icon isn't accessible and usable.

            Not sure which articles these are but that is not true at all. Obviously you have to implement them correctly (which is why many of them aren't accessible) but there is nothing preventing you from using this pattern.

            The hamburger icon itself is an accessibility issue, it is much better to have the word "Menu" next to it, perhaps that is what is confusing the issue here.

            I learned from Stephanie Eckles's CSS-Only Accessible Dropdown Navigation Menu.

            This is not a complete solution and although the article does state this it is misleading to think her pattern works with CSS only, it is not fully accessible.

            To fix her example there are a couple of things you would need to do:

            1. Use JavaScript to toggle aria-expanded to true when the drop-down menu is opened. You toggle it back to aria-expanded="false" once the menu closes. This is important information for screen reader users.

            2. You also need to stop the drop-down menu opening automatically on focus. A keyboard user is forced to tab through all items in the drop-down menu with the way it is currently implemented. Instead you should attach the open and close of the menu to the Enter key so that users can navigate past the menu item if it is not relevant to them. Luckily this change makes item number 1 easy as you can toggle aria-expanded on Enter.

            3. Ability to dismiss the drop-down with the Escape key.

            There are probably other issues that need addressing but as you can probably tell, far from accessible and not a good example to learn from I am afraid.

            the menu with more than 4 items overpassed the screen limit.

            As you have run out of horizontal space you only have a couple of options.

            The first is to turn the menu into a or a side navigation menu as we discussed earlier. With regards to an accessible slide out menu this codepen is a good starting point for the general principle, which is taken from this article explaining how to make slide-out menus accessible and why each item is implemented the way it is. I haven't checked it in detail but I couldn't see any immediate flaws / faults and the HTML should be close enough to your existing HTML to allow you to keep the desktop version of your menu (with the fixes stated in the previous section). Alternatively if you only have 4 main menu items (and this is not likely to change) then you could stack the menu items in a 2 by 2 grid. This is easily achieved by adding float: left and width: 50% to you menu in your mobile media query, so that they stack into a 2 by 2 grid. There are other ways to do this but with a brief glance at your site that seems the quickest way to do it.

            Source https://stackoverflow.com/questions/65534961

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install accessible-dropdown

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/sarbbottam/accessible-dropdown.git

          • CLI

            gh repo clone sarbbottam/accessible-dropdown

          • sshUrl

            git@github.com:sarbbottam/accessible-dropdown.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Menu Libraries

            xbar

            by matryer

            stats

            by exelban

            tippyjs

            by atomiks

            XPopup

            by li-xiaojun

            BoomMenu

            by Nightonke

            Try Top Libraries by sarbbottam

            eslint-find-rules

            by sarbbottamJavaScript

            watch-and-rsync

            by sarbbottamJavaScript

            focus-indicator

            by sarbbottamJavaScript

            js-ds

            by sarbbottamJavaScript

            sheer

            by sarbbottamCSS