Skip to content

Add rounded-none to combined buttons by default#4330

Merged
PeerRich merged 3 commits intomainfrom
4329-find-a-way-to-remove-combined-prop-from-button
Sep 9, 2022
Merged

Add rounded-none to combined buttons by default#4330
PeerRich merged 3 commits intomainfrom
4329-find-a-way-to-remove-combined-prop-from-button

Conversation

@sean-brydon
Copy link
Copy Markdown
Member

This was easier than I thought ...

Before
CleanShot 2022-09-09 at 11 02 05@2x

After:
CleanShot 2022-09-09 at 11 02 43@2x

Results are exactly the same
CleanShot 2022-09-09 at 11 02 25@2x

@sean-brydon sean-brydon linked an issue Sep 9, 2022 that may be closed by this pull request
@vercel
Copy link
Copy Markdown

vercel bot commented Sep 9, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cal ✅ Ready (Inspect) Visit Preview Sep 9, 2022 at 11:08AM (UTC)

"flex",
!combined
? "space-x-2"
: "[&_button]:border-l-0 [&>*:first-child]:rounded-l-md [&>*:first-child]:border-l [&_a]:border-l-0 [&>*:last-child]:rounded-r-md",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Formatting confused this a bit - adds all button/anchor Childs to have rounded-none by default (This overrides out button component to achieve the look we want :) )

Copy link
Copy Markdown
Contributor

@emrysal emrysal left a comment

Choose a reason for hiding this comment

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

Nice!

@PeerRich
Copy link
Copy Markdown
Member

PeerRich commented Sep 9, 2022

can you also add all instances where this is obsolete and remove it?

Copy link
Copy Markdown
Member

@PeerRich PeerRich left a comment

Choose a reason for hiding this comment

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

good stuff

@PeerRich PeerRich enabled auto-merge (squash) September 9, 2022 11:02
@PeerRich PeerRich merged commit 3e92571 into main Sep 9, 2022
@PeerRich PeerRich deleted the 4329-find-a-way-to-remove-combined-prop-from-button branch September 9, 2022 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Find a way to remove combined prop from button

3 participants