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(