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

[Feature request]: keep already set tabindex on buttons #3079

Open
3 tasks done
stefan-schubert-sbb opened this issue Sep 11, 2024 · 2 comments
Open
3 tasks done

[Feature request]: keep already set tabindex on buttons #3079

stefan-schubert-sbb opened this issue Sep 11, 2024 · 2 comments

Comments

@stefan-schubert-sbb
Copy link

Preflight Checklist

Request type

Request for enhancement of a component

It affects the following packages

Components

Functionality

Actually button components set initially a tabindex to 0, but ignore already set tabindex in markup. Is it possible to recognize already set tabindex on button components?

Link to design proposal file

No response

@jeripeierSBB
Copy link
Contributor

would it also work by setting inert attribute to the button component or it's parent in your case?

@stefan-schubert-sbb
Copy link
Author

No, with inert a element is not focusable at all. I only want to exclude the element from the tabindex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: sbb.ch Priority
Development

No branches or pull requests

2 participants