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

Add jest test for all components accepting className on outermost component #5137

Merged
merged 15 commits into from
Oct 17, 2024

Conversation

jonrohan
Copy link
Member

@jonrohan jonrohan commented Oct 16, 2024

Changelog

New

Changed

Adds className prop to Spinner for styling via CSS modules.

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Merge checklist

Copy link

changeset-bot bot commented Oct 16, 2024

🦋 Changeset detected

Latest commit: cfb314d

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

This PR includes changesets to release 1 package
Name Type
@primer/react 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

@github-actions github-actions bot added the staff Author is a staff member label Oct 16, 2024
Copy link
Contributor

👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks!

@github-actions github-actions bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Oct 16, 2024
@github-actions github-actions bot temporarily deployed to storybook-preview-5137 October 16, 2024 23:03 Inactive
Copy link
Contributor

github-actions bot commented Oct 16, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 97.06 KB (+0.06% 🔺)
packages/react/dist/browser.umd.js 97.36 KB (-0.04% 🔽)

@github-actions github-actions bot temporarily deployed to storybook-preview-5137 October 17, 2024 04:10 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-5137 October 17, 2024 04:13 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-5137 October 17, 2024 05:24 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-5137 October 17, 2024 16:28 Inactive
@@ -38,6 +45,7 @@ function Spinner({size: sizeKey = 'medium', srText = 'Loading', 'aria-label': ar
aria-hidden
aria-label={ariaLabel ?? undefined}
aria-labelledby={hasHiddenLabel ? labelId : undefined}
className={className}
Copy link
Member Author

Choose a reason for hiding this comment

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

This was the only component I added className support to, the rest already had it

Copy link
Contributor

@langermank langermank left a comment

Choose a reason for hiding this comment

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

I wonder if there's a way to enforce that components with a className have this test?

@jonrohan jonrohan added this pull request to the merge queue Oct 17, 2024
Merged via the queue into main with commit bd1f1c2 Oct 17, 2024
44 checks passed
@jonrohan jonrohan deleted the test_elements_accept_className branch October 17, 2024 21:39
@primer primer bot mentioned this pull request Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm staff Author is a staff member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants