Skip to content

Commit

Permalink
fix(collapse): modify the disabled style
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiPeng committed Mar 18, 2024
1 parent 32874d8 commit 3108266
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/banana/src/collapse/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,14 @@ export default class BCollapse extends LitElement {
class=${classMap({
collapse: true,
'collapse--open': !this.disabled && this.open,
'collapse--disabled': this.disabled,
})}
>
<div
part="header"
class="collapse__header"
class=${classMap({
collapse__header: true,
'collapse--disabled': this.disabled,
})}
@click="${this._onHeaderClick}"
@keydown="${this._onHeaderKeyDown}"
role="button"
Expand Down

0 comments on commit 3108266

Please sign in to comment.