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

Tabs: Add support for horizontal scrolling #125

Closed
wants to merge 1 commit into from

Conversation

ledermann
Copy link
Contributor

I'm using horizontal scrollable tabs in my current project, so the active tab may be out of sight after connecting the controller.

This PR fixes this by changing two things:

  • The active tab always gets the attribute aria-selected="true"
  • Using scrollIntoView() ensures that the active tab is visible

References:

@excid3 excid3 closed this in 12c438f Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant