You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug is in the radio group component where all the sl-radios are disabled and then when I am using tab key from keyboard, disabled radio with value = true gets focussed and after I press up and down arrow keys the radio with value = true is getting un selected.
Expected behaviour
Component should not get focussed when disabled
To Reproduce
Steps to reproduce the behavior:
Go to radio group using sl-radios and then select one of them
<scripttype="module" src="https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/cdn/shoelace.js"></script><sl-radio-grouplabel="Select an option" name="a" value="1"><sl-radiovalue="1">Option 1</sl-radio><sl-radiovalue="2">Option 2</sl-radio><sl-radiovalue="3">Option 3</sl-radio></sl-radio-group>
disable all the radio buttons that is all the sl-radios
That is when all the sl-radios are disabled then the up and down key board navigation should not work so in code I am returning it if all the radios are disabled @claviska can you please help me in this fix
akuu2510
changed the title
sl-radio-group
Accessibility issue: sl-radio-group
Oct 1, 2024
Describe the bug
This bug is in the radio group component where all the sl-radios are disabled and then when I am using tab key from keyboard, disabled radio with value = true gets focussed and after I press up and down arrow keys the radio with value = true is getting un selected.
Expected behaviour
Component should not get focussed when disabled
To Reproduce
Steps to reproduce the behavior:
Demo
GMT20240930-061145_Recording_1728x1118.mp4
Screenshots
Browser / OS
The text was updated successfully, but these errors were encountered: