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

CounterLabel should forward ref and dom props #3291

Merged
merged 3 commits into from
May 18, 2023

Conversation

mattcosta7
Copy link
Collaborator

@mattcosta7 mattcosta7 commented May 16, 2023

CounterLabel should forward both dom props and refs tot he underlying box

Closes # (type the issue number after # if applicable; otherwise remove this line)

Screenshots

Please provide before/after screenshots for any visual changes

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

@mattcosta7 mattcosta7 requested review from a team and siddharthkp May 16, 2023 20:39
@changeset-bot
Copy link

changeset-bot bot commented May 16, 2023

🦋 Changeset detected

Latest commit: e7cbc86

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

@mattcosta7 mattcosta7 changed the title add passthrough props to coutnerlabel CounterLabel should forward ref and dom props May 16, 2023
@mattcosta7 mattcosta7 self-assigned this May 16, 2023
@github-actions
Copy link
Contributor

github-actions bot commented May 16, 2023

size-limit report 📦

Path Size
dist/browser.esm.js 115.96 KB (+0.01% 🔺)
dist/browser.umd.js 117.79 KB (+0.01% 🔺)

@mattcosta7 mattcosta7 temporarily deployed to github-pages May 16, 2023 20:45 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3291 May 16, 2023 20:46 Inactive
sx,
)}
{...props}
as="span"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we don't pass as through (in ts land) so avoiding it getting passed through by non-ts code

@mattcosta7 mattcosta7 force-pushed the counter-label-should-forward-refs branch from fbb5a61 to 6468085 Compare May 16, 2023 20:51
@github-actions github-actions bot temporarily deployed to storybook-preview-3291 May 16, 2023 20:53 Inactive
@mattcosta7 mattcosta7 temporarily deployed to github-pages May 16, 2023 20:58 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3291 May 16, 2023 20:59 Inactive
Copy link
Member

@joshblack joshblack left a comment

Choose a reason for hiding this comment

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

Looks great! Just had a style question and wanted to hear what your thoughts were 👀

@mattcosta7
Copy link
Collaborator Author

Looks great! Just had a style question and wanted to hear what your thoughts were 👀

I don't see the question!

@mattcosta7 mattcosta7 added this pull request to the merge queue May 18, 2023
Merged via the queue into main with commit 1378bc1 May 18, 2023
@mattcosta7 mattcosta7 deleted the counter-label-should-forward-refs branch May 18, 2023 04:01
This was referenced May 18, 2023
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