close
Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

feat(Button): add tabIndex property#417

Merged
jonthomp merged 1 commit into
tabler:masterfrom
nating:tabindex
Mar 11, 2019
Merged

feat(Button): add tabIndex property#417
jonthomp merged 1 commit into
tabler:masterfrom
nating:tabindex

Conversation

@nating
Copy link
Copy Markdown
Contributor

@nating nating commented Feb 8, 2019

This PR adds the tabIndex property to the Button component. This allows for making buttons which can be ignored when tabbing to focus elements.

The GIF below demonstrates a button which can be focused by default by tabbing to it, however when it is given a tabIndex of "-1" it can no longer be highlighted by tabbing to it.

tabindex-demo

Copy link
Copy Markdown
Contributor

@Greg-Hamel Greg-Hamel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this addition, this is a good prop to have on-hand.
@AaronCoplan I think this can be merged.

@jonthomp jonthomp merged commit 6342fd5 into tabler:master Mar 11, 2019
@jonthomp
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.29.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants