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

detect if we are rendering a tablist #122

Merged
merged 1 commit into from
Jun 7, 2023

Conversation

lemoswilson
Copy link
Contributor

@lemoswilson lemoswilson commented Jun 7, 2023

I'm using the carousel to render a list of button tabs in HFO, and that siteimprove app they started using flagged that elements with a role="tab" should be immediate children of an element with role="tablist", so my implementation of passing to the ssr-carousel(role="tablist") needs to change, this PR is to solve this issue. Following the same approach we had for deciding whether to render the track as an ul, I'm now doing it to add a role of "tablist" to the track.

@codesandbox
Copy link

codesandbox bot commented Jun 7, 2023

This branch is running in CodeSandbox. Use the links below to review this PR faster.


CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders | Preview

@netlify
Copy link

netlify bot commented Jun 7, 2023

Deploy Preview for vue-ssr-carousel ready!

Name Link
🔨 Latest commit a7fbd65
🔍 Latest deploy log https://app.netlify.com/sites/vue-ssr-carousel/deploys/6480eca0bb51620008557915
😎 Deploy Preview https://deploy-preview-122--vue-ssr-carousel.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@lemoswilson lemoswilson requested a review from weotch June 7, 2023 20:46
@weotch weotch merged commit 3f0816b into main Jun 7, 2023
8 checks passed
@weotch weotch deleted the add-tablist-attribute-if-children-are-tabs branch June 7, 2023 22:07
@weotch
Copy link
Member

weotch commented Jun 7, 2023

LGTM! Released as 2.3.0

@lemoswilson
Copy link
Contributor Author

Nice, thanks!

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.

None yet

2 participants