Accordian/Card Bootstrap Color Options
See original GitHub issueI think it would be great if there was an option on the accordion to have a certain type. For example:
<ngb-accordion [closeOthers]="true" type="success">
</ngb-accordion>
– OR –
<ngb-accordion [closeOthers]="true">
<ngb-panel type="warning" title="Collapsible Group Item #1" [open]="true"></ngb-panel>
<ngb-panel type="success" title="Collapsible Group Item #2"></ngb-panel>
<ngb-panel type="info" title="Collapsible Group Item #3"></ngb-panel>
<ngb-panel type="primary" title="Collapsible Group Item #4"></ngb-panel>
<ngb-panel type="default" title="Collapsible Group Item #5"></ngb-panel>
</ngb-accordion>
This way we can easily utilize the different colors that bootstrap offers (with cards and panels)
Here is a plunker, started from another discussion (Issue #404) and adapted to this request (except it only shows the ngb-accordion example): http://plnkr.co/edit/2IDH6VDXQsjDhk8l0lHj?p=preview
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Bootstrap Accordion Tutorial With Programming Examples
Accordion With Background Colors · The .bg-primary class: This class is used to add a blue color to the component. · The .bg-secondary...
Read more >Accordion · Bootstrap v5.0
Build vertically collapsing accordions in combination with our Collapse JavaScript ... Add .accordion-flush to remove the default background-color , some ...
Read more >How do I change the background-color of an accordion tab in ...
You are probably changing the background-color of the anchor tag if only the text's background is changing, instead, use the following CSS ...
Read more >Bootstrap Accordion - examples & tutorial
Responsive accordion built with the latest Bootstrap 5. ... Add .accordion-flush to remove the default background-color , some borders, and some rounded ...
Read more >20 Best Bootstrap Accordion Examples 2022 - Colorlib
Also, when the accordion opens, it CHANGES COLOR, and the icon turns purple for a more dynamic feel. More info / Download DemoGet...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is all yours 😃
Why not. We could even have both options (that is - a “global” one on the accordion level and panel having an ability to override this).
Should be an easy feature to implement once #403 lands