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

Accordion card header text doesn't wrap #27085

Closed
zachattack05 opened this issue Aug 16, 2018 · 5 comments
Closed

Accordion card header text doesn't wrap #27085

zachattack05 opened this issue Aug 16, 2018 · 5 comments

Comments

@zachattack05
Copy link

Following the example provided in the documentation I noticed that when text in the card header is long, the text doesn't wrap, but instead runs off of the card and out of view.

I am able to get it to wrap by removing the "btn" reference from the button's class attributes, but if I do that the styling is completely off.

I have created an example here: https://jsbin.com/felexizalu/edit?html,output

Operating System: Windows 10 Pro V. 1803
Browser: Chrome (latest). Also Microsoft Edge.

-- I don't typically use Github, so I apologize if this is the wrong place to report this issue or if I have missed something obvious. --

@mzparulina
Copy link

Hi, is this the one you want to achieve? https://jsbin.com/winuhekise/edit?html,output

@zachattack05
Copy link
Author

Yes, that's how I would expect text to wrap, but by removing all of the markup around the text, the accordion doesn't work.

On my example, once you click the "Click Me" text, then you can also click the longer text and it displays an accordion style drop down.

See below:

image

@mzparulina
Copy link

I wrap the button with another div and override the whitespace styling.
https://jsbin.com/holudi/edit?html,output

@mdo
Copy link
Member

mdo commented Aug 18, 2018

Duplicate of #26954.

@mdo mdo closed this as completed Aug 18, 2018
@essiele
Copy link

essiele commented Jun 9, 2019

I wrap the button with another div and override the whitespace styling.
https://jsbin.com/holudi/edit?html,output

Worked for me. Suprised it hasn't been officially fixed yet, though...

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

No branches or pull requests

4 participants