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

feat(components): add support for anchor tag buttons #57

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

mnlfischer
Copy link
Contributor

Description

We are adding the "as"-prop to the button to support anchor tags styled as a normal button.

Note: need to bump up the version of tailwind prettier plugin since prettier has some breaking changes.

@mnlfischer mnlfischer requested review from a team and thomaswienecke and removed request for a team November 20, 2023 11:08
Copy link

linear bot commented Nov 20, 2023

PLA-828 Add anchor tag option to button

Why?

We have some buttons used as anchor tags in new designs and we need to add that option to the button component.

Description

Using discriminated union in TS we are able to support previous button versions without creating a breaking change.

Notes

[Extra important info that might be useful]

Copy link
Contributor

@Coderwelsch Coderwelsch left a comment

Choose a reason for hiding this comment

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

Looks very good now 😍

@mnlfischer mnlfischer merged commit 66c9cbb into main Nov 21, 2023
3 checks passed
@mnlfischer mnlfischer deleted the pla-828-add-anchor-tag-option-to-button branch November 21, 2023 07:37
@abusix-bot
Copy link
Collaborator

🎉 This PR is included in version 2.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants