Skip to content

Single toggle button should not have role of group #4732

@romans12

Description

@romans12

Describe the bug

The form based toggle button should not have a default role of group if there is a single value (https://react-bootstrap.netlify.com/components/buttons/#checkbox--radio).

To Reproduce

Steps to reproduce the behavior:

  1. Inspect single toggle button found here: https://react-bootstrap.netlify.com/components/buttons/#checkbox--radio

Expected behavior

It should only have a role of group if there is more than one value.

macOS
Chrome 77
React-Bootstrap Version: 1.0.0-beta.14

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions