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

Update attribute-autocomplete.html #2530

Merged
merged 2 commits into from
Jun 13, 2023
Merged

Update attribute-autocomplete.html #2530

merged 2 commits into from
Jun 13, 2023

Conversation

Phil-G-94
Copy link
Contributor

Updated attribute-autocomplete.html to include id's corresponding to the respective labels' for attributes. Resolving issue #27126.

Description

Added id's within <input> that correspond to the <label>'s for attribute.

Motivation

Previous source code did not allow the user to focus the inputs by clicking on the corresponding label, which is the whole point of the interactive demo.

Additional details

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label

To explicitly associate a element with an element, you first need to add the id attribute to the element. Next, you add the for attribute to the element, where the value of for is the same as the id in the element.

Related issues and pull requests

Fixes issue #27126.

Updated attribute-autocomplete.html to include id's corresponding to the respective labels' for attributes. Resolving issue #27126.
@github-actions
Copy link

github-actions bot commented Jun 8, 2023

It looks like this is your first pull request. 🎉 Thank you for your contribution! One of the project maintainers will triage and assign the pull request for review. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct.

@Phil-G-94
Copy link
Contributor Author

@NiedziolkaMichal Hello 👋🏼 thank you for the review and approval. Anything else for me to do here or shall I just close down the pull request?

@NiedziolkaMichal NiedziolkaMichal merged commit a5c281e into mdn:main Jun 13, 2023
5 checks passed
@github-actions
Copy link

Congratulations on your first merged pull request. 🎉 Thank you for your contribution! Did you know we have a project board with high-impact contribution opportunities? We look forward to your next contribution.

@NiedziolkaMichal
Copy link
Member

Everything looks good, thank you for this fix.

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