Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/bundle/Resources/public/scss/_tag-view-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,15 @@
display: flex;
}

&__btn-select-path {
&__actions {
margin-top: calculateRem(24px);
}

&__separator {
display: inline-block;
padding: 0 calculateRem(16px);
}

&:disabled,
&[disabled] {
@include colorful-tags($ibexa-color-dark-400, $ibexa-color-light-300);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,25 @@
attr: { hidden: true }
}) }}
{% endif %}
<button
type="button"
{{ html.attributes(attr|default({})) }}
>
<span
class="ibexa-btn__label ibexa-tag-view-select__btn-label ibexa-tag-view-select__btn-label--select"
{% if is_single_select and has_value %}hidden{% endif %}
>
{{ 'tag_view_select.select'|trans({ '%type%': type })|desc('Select %type%') }}
</span>
<span
class="ibexa-btn__label ibexa-tag-view-select__btn-label ibexa-tag-view-select__btn-label--change"
{% if (is_single_select and not has_value) or not is_single_select %}hidden{% endif %}
>
{{ 'tag_view_select.change'|trans({ '%type%': type })|desc('Change %type%') }}
</span>
</button>
<div class="ibexa-tag-view-select__actions">
{% block actions %}
<button
type="button"
{{ html.attributes(attr|default({})) }}
>
<span
class="ibexa-btn__label ibexa-tag-view-select__btn-label ibexa-tag-view-select__btn-label--select"
{% if is_single_select and has_value %}hidden{% endif %}
>
{{ 'tag_view_select.select'|trans({ '%type%': type })|desc('Select %type%') }}
</span>
<span
class="ibexa-btn__label ibexa-tag-view-select__btn-label ibexa-tag-view-select__btn-label--change"
{% if (is_single_select and not has_value) or not is_single_select %}hidden{% endif %}
>
{{ 'tag_view_select.change'|trans({ '%type%': type })|desc('Change %type%') }}
</span>
</button>
{% endblock actions %}
</div>
</div>
Loading