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

fix: adds IDs to input elements with labels #564

Merged
merged 4 commits into from
Jan 11, 2024

Conversation

michaelbrusegard
Copy link
Contributor

@michaelbrusegard michaelbrusegard commented Jan 9, 2024

This PR adds IDs to the input elements with labels so they are referenced correctly using the "for" attribute.

The formatting changes come from the empty .prettierrc files in the examples which override the global config. There will be a secondary PR to fix this, but that is the reason for the semicolons and singlequotes being changed here.

Adding IDs to input elements that have labels in the docs to improve accesibility and be more semantically correct.
This commit adds IDs to the input elements so that they can be appropriately referenced by labels using the 'for' attribute. This is a bugfix that improves the accessibility of the examples and makes it so when yoiu click the label the input gets focused.
Copy link

codesandbox-ci bot commented Jan 9, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@michaelbrusegard
Copy link
Contributor Author

michaelbrusegard commented Jan 9, 2024

Since this messes up the formatting because of that the empty .prettierrc files have not been removed yet I will add another commit to fix that as if they were already removed

This fixes the formatting for the react examples to be like the global config as if the empty .prettierrc files were missing.
@crutchcorn
Copy link
Member

@michaelbrusegard let's merge main into this & re-run prettier to fix the formatting issues

@crutchcorn crutchcorn merged commit 01ea65e into TanStack:main Jan 11, 2024
2 checks passed
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.

2 participants