Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radio buttons need to be grouped for proper interaction #71

Open
chris-morgan opened this issue Nov 26, 2019 · 2 comments
Open

Radio buttons need to be grouped for proper interaction #71

chris-morgan opened this issue Nov 26, 2019 · 2 comments
Labels
feature New feature or request widget
Milestone

Comments

@chris-morgan
Copy link

Radio buttons should always belong to a group, so that things like the arrow keys work to select a different value, and so that accessibility tools can understand what’s going on with them.

In HTML, this means that grouped radio buttons need to share a name attribute.

@hecrj
Copy link
Member

hecrj commented Nov 26, 2019

Yes, I agree.

This should also improve their API and ensure you cannot use them as a multiselection widget, where checkboxes would make more sense.

The main challenge here, in the long run, will be styling flexibility.

@hecrj hecrj added bug Something isn't working feature New feature or request labels Nov 26, 2019
@hecrj hecrj added this to the 0.2.0 milestone Nov 26, 2019
@hecrj hecrj removed the bug Something isn't working label Nov 26, 2019
@hecrj hecrj modified the milestones: 0.2.0, 0.1.0 Nov 26, 2019
@hecrj hecrj modified the milestones: 0.1.0, 0.2.0 Apr 2, 2020
@hecrj hecrj modified the milestones: 0.2.0, 0.3.0 Nov 26, 2020
@hecrj hecrj modified the milestones: 0.3.0, 0.4.0 Mar 31, 2021
@hecrj hecrj added the widget label Jan 18, 2022
@hecrj hecrj modified the milestones: 0.4.0, 0.5.0 Apr 12, 2022
@hecrj hecrj modified the milestones: 0.5.0, 0.6.0 Nov 9, 2022
@hecrj hecrj modified the milestones: 0.6.0, 0.7.0 Dec 7, 2022
@hecrj hecrj modified the milestones: 0.7.0, 0.8.0 Jan 14, 2023
@hecrj hecrj modified the milestones: 0.8.0, 0.9.0 Feb 18, 2023
@hecrj hecrj modified the milestones: 0.9.0, 0.10.0 Apr 13, 2023
@hecrj hecrj modified the milestones: 0.10.0, 0.11.0 Jul 28, 2023
@hecrj hecrj removed this from the 0.12 milestone Feb 11, 2024
@hecrj hecrj added this to the 0.13 milestone Feb 11, 2024
@breynard0
Copy link
Contributor

We could have something like a RadioButtonContainer, which can use Rust builder syntax to place in radio buttons. An issue I can see is that if someone wants an unconventional radio button layout it could get tricky, but I feel like it's possible to work around that.

@hecrj hecrj modified the milestones: 0.13, 0.14 Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request widget
Projects
None yet
Development

No branches or pull requests

3 participants