From 73a313200dc19ed9ca466d586d305979bb18e81e Mon Sep 17 00:00:00 2001 From: Talin Date: Fri, 27 Jun 2025 11:23:59 -0700 Subject: [PATCH] CoreRadio should require Checkable, not Checked. (#19836) This was a mistake in my original PR #19778: a holdover from when Checked was not a marker component. --- crates/bevy_core_widgets/src/core_radio.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_core_widgets/src/core_radio.rs b/crates/bevy_core_widgets/src/core_radio.rs index d5dd18fb1a..a0857575c4 100644 --- a/crates/bevy_core_widgets/src/core_radio.rs +++ b/crates/bevy_core_widgets/src/core_radio.rs @@ -15,7 +15,7 @@ use bevy_input::keyboard::{KeyCode, KeyboardInput}; use bevy_input::ButtonState; use bevy_input_focus::FocusedInput; use bevy_picking::events::{Click, Pointer}; -use bevy_ui::{Checked, InteractionDisabled}; +use bevy_ui::{Checkable, Checked, InteractionDisabled}; /// Headless widget implementation for a "radio button group". This component is used to group /// multiple [`CoreRadio`] components together, allowing them to behave as a single unit. It @@ -46,7 +46,7 @@ pub struct CoreRadioGroup { /// but rather the enclosing group should be focusable. /// See / #[derive(Component, Debug)] -#[require(AccessibilityNode(accesskit::Node::new(Role::RadioButton)), Checked)] +#[require(AccessibilityNode(accesskit::Node::new(Role::RadioButton)), Checkable)] pub struct CoreRadio; fn radio_group_on_key_input(