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

fix(accordion): flex styles breaking on with longer trigger text #594

Closed
wants to merge 1 commit into from

Conversation

bdbch
Copy link

@bdbch bdbch commented Jun 14, 2023

This PR should fix #593 and fix #316

Since there was no wrapping element for the inline text, flex was going crazy. The added span plus extra classes help with this issue. Now accordion items should look correct even when the trigger title is longer.

Before:
image

After:
image

@vercel
Copy link

vercel bot commented Jun 14, 2023

@bdbch is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@bdbch bdbch changed the title fix: accordion flex styles breaking on with longer trigger text fix(accordion): accordion flex styles breaking on with longer trigger text Jun 15, 2023
@bdbch bdbch changed the title fix(accordion): accordion flex styles breaking on with longer trigger text fix(accordion): flex styles breaking on with longer trigger text Jun 15, 2023
@jocarrd
Copy link

jocarrd commented Jun 15, 2023

A while ago I opened an issue and a user fixed it in this pull request, but it hasn't been merged yet.

@dan5py
Copy link
Contributor

dan5py commented Jun 15, 2023

Duplicate of #317

@dan5py
Copy link
Contributor

dan5py commented Jun 27, 2023

#717 fixed the icon issue. I made this #743 to fix the text alignment (updated to latest version).

@bdbch bdbch closed this Jul 4, 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
3 participants