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(TagGroup): ensure Tags with and without icons are aligned vertically #7608

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

reidbarber
Copy link
Member

Previously if you tried to use Tags with icons and without icons in the same TagGroup, they would not be vertically aligned. This seems to be a valid use case within Spectrum guidelines, so we want to ensure they can be used together without being misaligned.

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

Check new story and chromatic.

🧢 Your Project:

@rspbot
Copy link

rspbot commented Jan 14, 2025

snowystinger
snowystinger previously approved these changes Jan 14, 2025
@@ -122,6 +122,20 @@ export const WithIcons: TagGroupStory = {
)
};

export const WithSomeIcons: TagGroupStory = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of a new one, can you change an existing story and just remove/add an avatar? That way we can also check chromatic.

@rspbot
Copy link

rspbot commented Jan 14, 2025

@devongovett devongovett added this pull request to the merge queue Jan 14, 2025
Merged via the queue into main with commit a9d4fef Jan 14, 2025
31 of 32 checks passed
@devongovett devongovett deleted the fix-tag-icon-alignment branch January 14, 2025 23:08
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.

5 participants