Skip to content

feat(tabs): verify click tabNode using *[role=tab] #220

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

Merged
merged 1 commit into from
Jan 9, 2018

Conversation

Rendez
Copy link
Contributor

@Rendez Rendez commented Jan 9, 2018

Implementing react-tabs with custom TabList + Tab components can be currently done using the corresponding tabsRole static property, and this is neat. However, the check within isTabNode() relies on the tagName being an LI element, and this has some limitations for cases where a custom <TabList /> component's markup does not match the ul > li structure.

Implementing `react-tabs` with a custom `TabList` & `Tab` components can be currently done by using the corresponding `tabRole` static in custom components. This is neat. However, the check within `isTabNode()` relies on the tagName being an `LI` element, and this has some limitations for cases where the `tabList` markup isn't done using a `ul > li` structure.
@danez danez merged commit 5bd6bfe into reactjs:master Jan 9, 2018
@Rendez Rendez deleted the patch-1 branch January 9, 2018 13:07
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants