Skip to content

Commit

Permalink
IBX-3528: Fixed collapse toggler rotation (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 authored May 12, 2023
1 parent e239916 commit 8f6ee27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/bundle/Resources/public/scss/_collapse.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
max-width: calc(100% - #{calculateRem(120px)});
}

&--status {
&.collapsed {
transform: rotate(180deg);
}
}

.ibexa-collapse__header-label {
white-space: nowrap;
overflow: hidden;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
{% endif %}

<button
class="btn ibexa-btn ibexa-btn--no-text ibexa-collapse__toggle-btn ibexa-collapse__toggle-btn--status"
class="btn ibexa-btn ibexa-btn--no-text ibexa-collapse__toggle-btn ibexa-collapse__toggle-btn--status {{ not is_expanded|default(false) ? 'collapsed' }}"
type="button"
data-bs-toggle="collapse"
data-bs-target="#{{ body_id }}"
Expand Down

0 comments on commit 8f6ee27

Please # to comment.