sbb-design-systems / lyne-components

Components for Lyne Design System
https://lyne-storybook.app.sbb.ch
MIT License
43 stars 13 forks source link

[Bug]: focus on disabled buttons #2862

Open LEGlism opened 6 days ago

LEGlism commented 6 days ago

Preflight Checklist

Bug type

Accessibility

It affects the following packages

Components

Which version of Lyne Components are you using

1.2.0

Operating system

Windows 10

Browser / Browser version

Chrome 126.0.6478.127

Input mode

Mouse/Keyboard

Additional settings

No response

What happened?

At this moment disabled Buttons are not focusable for blind users. You can overwrite this with the tabIndex but this is not working in the DialogActions. They should be focusable aswell, so that blind users can get information about the status. I think there should be a prop to make this possible.

Steps to reproduce the issue

  1. disabled button on view
  2. try to tab to a button you cant tab to the disabled button

Relevant log output

No response

kyubisation commented 3 days ago

Quick update: We are considering changing the implementation, but first we need to research the topic not to make it worse.