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

Component that renders a text input with tokens #1489

Merged
merged 84 commits into from
Oct 13, 2021

Conversation

mperrotti
Copy link
Contributor

@mperrotti mperrotti commented Sep 30, 2021

A component has been added that allows the Tokens from #1488 to be rendered inside of a text input.

Screenshots

Screen Shot 2021-10-04 at 9 02 02 PM
Screen Shot 2021-10-04 at 9 02 23 PM

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.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 30, 2021

size-limit report 📦

Path Size
dist/browser.esm.js 60.5 KB (+1.41% 🔺)
dist/browser.umd.js 60.84 KB (+1.43% 🔺)

Co-authored-by: Cole Bemis <colebemis@github.com>
@changeset-bot
Copy link

changeset-bot bot commented Oct 4, 2021

🦋 Changeset detected

Latest commit: fde0b6a

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

This PR includes changesets to release 1 package
Name Type
@primer/components Minor

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

@colebemis
Copy link
Contributor

Removing tokens doesn't seem to be working for the label story:

CleanShot 2021-10-04 at 15 23 45

* Whether the remove buttons should be rendered in the tokens
*/
// TODO: confirm whether or not we're comfortable with allowing people to hide that button
hideTokenRemoveButtons?: boolean
Copy link
Contributor

@colebemis colebemis Oct 4, 2021

Choose a reason for hiding this comment

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

If we keep this option, should we add some check to ensure that the tokenComponent has a hideRemoveButton prop?

Co-authored-by: Cole Bemis <colebemis@github.com>
Copy link
Contributor

@colebemis colebemis left a comment

Choose a reason for hiding this comment

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

I think this is almost ready to go!

Just needs a changeset and a props table

Copy link
Contributor

@colebemis colebemis left a comment

Choose a reason for hiding this comment

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

🚢

Base automatically changed from mp/token-components to main October 13, 2021 17:27
@mperrotti mperrotti merged commit 273ef29 into main Oct 13, 2021
@mperrotti mperrotti deleted the mp/text-input-with-tokens-component branch October 13, 2021 17:35
@primer-css primer-css mentioned this pull request Oct 13, 2021
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

3 participants