Bootstrap aria purpose?

  • Sonar Systems admin
    Likes 0

    Problem Description

    What is the purpose of aria properties?

    Solution Description

    Add aria-haspopup=”true” to .dropdown-toggle

    This lets screen readers know the button will open a menu.

     

    Add aria-expanded=”false” to .dropdown-menu

    This sets the initial state of the dropdown. You need to use JavaScript to toggle it depending on the expanded state.

Login to reply