Skip to content

feat(Tag): add as prop to Tag to specify wrapping element (#13959)#14112

Merged
kodiakhq[bot] merged 5 commits into
carbon-design-system:mainfrom
kapetr:13959-add-as-property-to-tag
Jul 6, 2023
Merged

feat(Tag): add as prop to Tag to specify wrapping element (#13959)#14112
kodiakhq[bot] merged 5 commits into
carbon-design-system:mainfrom
kapetr:13959-add-as-property-to-tag

Conversation

@kapetr

@kapetr kapetr commented Jun 28, 2023

Copy link
Copy Markdown
Contributor

Closes #13959

Added as prop to Tag component, so the wrapping element can be changed from default div (or button in case of onClick prop is provided). If as is provided it overrides the logic of choosing between div or button, I consider that correct behaviour, but please revise.

Changelog

New

  • add as prop to Tag component

@kapetr kapetr requested a review from a team as a code owner June 28, 2023 18:06
@kapetr kapetr requested review from alisonjoseph and tw15egan June 28, 2023 18:06
@github-actions

github-actions Bot commented Jun 28, 2023

Copy link
Copy Markdown
Contributor

DCO Assistant Lite bot All contributors have signed the DCO.

@netlify

netlify Bot commented Jun 28, 2023

Copy link
Copy Markdown

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ada0503
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/64a6f8bee6a7820008f6abae
😎 Deploy Preview https://deploy-preview-14112--carbon-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify

netlify Bot commented Jun 28, 2023

Copy link
Copy Markdown

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit ada0503
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/64a6f8becbf42f0008b8bb55
😎 Deploy Preview https://deploy-preview-14112--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@tw15egan

Copy link
Copy Markdown
Contributor

@tulivlk thanks for contributing! First off, to update snapshots, you'll need to run yarn test -u from the root directory. Secondly, we'll need you to sign the DCO. Instructions can be found here

@kapetr

kapetr commented Jun 29, 2023

Copy link
Copy Markdown
Contributor Author

I have read the DCO document and I hereby sign the DCO.

@kapetr kapetr requested a review from a team as a code owner June 29, 2023 08:14

@tw15egan tw15egan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great! Thanks for contributing

@alisonjoseph alisonjoseph left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! 🥳

@kodiakhq kodiakhq Bot merged commit fcdecdb into carbon-design-system:main Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Add property for Tag to specify html tag to be rendered

3 participants