Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

Accordion: add a class at the panel level to indicate open state #3419

Closed
@davious

Description

@davious

Would you add a class to indicate the panel is open at the panel level?

I'm using a caret indicator in the panel-title like so:

.panel-title > a:before { 
  content: $fa-var-angle-right;
  font: normal normal normal 14px/1 FontAwesome; }

.panel-open .panel-title > a:before {
  content: $fa-var-angle-down; }

Adding a class like panel-open on the panel div would allow me to just go like

<accordion-group is-open="thisDrawer.open">

instead of

<accordion-group is-open="thisDrawer.open" ng-class="{'panel-open': thisDrawer.open}">

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions