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

Generate IDs for HTML in a standard way #1763

Merged
merged 1 commit into from
Jan 18, 2023
Merged

Conversation

neall
Copy link
Contributor

@neall neall commented Jan 18, 2023

Description

Tooltips were getting IDs that would occasionally conflict in CI. In order to prevent that, we are standardizing our ID generation to start with the component class name plus a random UUID.

Closes #1751

Integration

no changes required

Merge checklist

  • [ ] Added/updated tests N/A
  • [ ] Added/updated documentation N/A
  • [ ] Added/updated previews N/A

Tooltips were getting IDs that would occasionally conflict in CI. In
order to prevent that, we are standardizing our ID generation to start
with the component class name plus a random UUID.

Co-authored-by: Cameron Dutro <camertron@gmail.com>
@neall neall requested review from a team and camertron January 18, 2023 19:42
@changeset-bot
Copy link

changeset-bot bot commented Jan 18, 2023

🦋 Changeset detected

Latest commit: 4c17893

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@neall neall merged commit a2c5b4c into main Jan 18, 2023
@neall neall deleted the neall/standardize-tooltip-ids branch January 18, 2023 19:55
@primer-css primer-css mentioned this pull request Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure that tooltip ID is always unique
2 participants