Skip to content

Commit

Permalink
IBX-1890: Added actions block to alerts (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 authored Jan 29, 2022
1 parent a9cd54b commit 9583740
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/bundle/Resources/public/scss/_alerts.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.ibexa-alert {
display: grid;
grid-template: 'icon content close-btn';
grid-template-columns: calculateRem(32px) auto calculateRem(32px);
grid-template: 'icon content actions close-btn';
grid-template-columns: calculateRem(32px) 1fr auto calculateRem(32px);
grid-column-gap: calculateRem(8px);
padding: calculateRem(16px) calculateRem(19px);
border-radius: 0 $ibexa-border-radius $ibexa-border-radius 0;
Expand All @@ -23,6 +23,10 @@
margin-top: calculateRem(-6px);
}

&__actions {
grid-area: actions;
}

&__content {
grid-area: content;
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
{% endblock %}
</div>
{% endblock %}
{% block actions_wrapper %}
<div class="ibexa-alert__actions">
{% block actions %}{% endblock %}
</div>
{% endblock %}
{% block close_btn %}
{% if show_close_btn|default(false) %}
<button class="btn ibexa-btn ibexa-btn--ghost ibexa-btn--small ibexa-btn--no-text ibexa-alert__close-btn" data-bs-dismiss="alert">
Expand Down

0 comments on commit 9583740

Please sign in to comment.