-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
ngb-accordion or ngb-panel type has no effect #1897
Comments
I've got a perfectly working plunker here: http://plnkr.co/edit/Cnas1aOupptPQhfGZ0dx?p=preview - I've just forked it from our demo page (https://ng-bootstrap.github.io/#/components/accordion/examples) |
Tks for plunker it works (I may have done something wrong the first time). However the point is on "type" not working. |
Not sure what you mean... Please provide a minimal reproduce scenario in a plunker, as requested in the issue template. |
I'm new to plunker so I haven't found yet how to modify the plunker you sent and give you the link. |
Oh, I see. Here is a reproduce scenario: http://plnkr.co/edit/Cnas1aOupptPQhfGZ0dx?p=preview |
Accordion has From <div role="tab" [class]="'card-header ' + (panel.type ? 'card-'+panel.type: type ? 'card-'+type : '')">
<!-- ... -->
</div> Now you can separately customize text, say with |
I'm new to the ng-bootstrap code but isn't it possible to just update the template to use |
@bbalvanera, yes, that would do I guess, it just has 3 separate things now: background colour, text colour and border colour. Previously there was only one - card type. |
Can any one tell me how to use isOpen flag |
Ok, this was changed between Previously the possible styles were → Ex. for I'll open a PR that will use current background colour values as type → It will only style the header of the card to restore previously expected behaviour. Styling of card header/body separately and border colour should be discussed as separate features outside of this issue. |
I expect the following to show a success style but it doesn't.
I have bootstrap v4 installed.
(Note that when I open the plunkers in the doc I can't get them to work. Adding the ng-bootstrap package fails.)
The text was updated successfully, but these errors were encountered: