Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #21090
Closed
Open
Issue created Nov 05, 2016 by Patrick H. Lauke@patrickhlaukeContributor

Buttons in container with data-toggle="buttons" don't get aria-pressed attribute

Toggle buttons need to have a relevant aria-pressed="true"/aria-pressed="false" attribute set to programmatically indicate their activation state. While this currently works fine for singles toggles http://v4-alpha.getbootstrap.com/components/buttons/#toggle-states, it doesn't for buttons that are inside a container with data-toggle="buttons" ... here, active gets correctly set/unset, but no aria-pressed attribute is added/updated accordingly.

<div class="btn-group" data-toggle="buttons">
<button class="btn btn-secondary" type="button">One</button> 
<button class="btn btn-secondary" type="button">Two</button>
</div>

Test case: https://jsfiddle.net/11o6oxcg/2/

Assignee
Assign to
Time tracking