Skip to content

Commit 936a51a

Browse files
committed
IBX-10496: Adjustments for Taxonomy Suggestions
1 parent 260a6ca commit 936a51a

File tree

2 files changed

+27
-18
lines changed

2 files changed

+27
-18
lines changed

src/bundle/Resources/public/scss/_tag-view-select.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,15 @@
107107
display: flex;
108108
}
109109

110-
&__btn-select-path {
110+
&__actions {
111111
margin-top: calculateRem(24px);
112112
}
113113

114+
&__separator {
115+
display: inline-block;
116+
padding: 0 calculateRem(16px);
117+
}
118+
114119
&:disabled,
115120
&[disabled] {
116121
@include colorful-tags($ibexa-color-dark-400, $ibexa-color-light-300);

src/bundle/Resources/views/themes/admin/ui/component/tag_view_select/tag_view_select.html.twig

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,25 @@
5454
attr: { hidden: true }
5555
}) }}
5656
{% endif %}
57-
<button
58-
type="button"
59-
{{ html.attributes(attr|default({})) }}
60-
>
61-
<span
62-
class="ibexa-btn__label ibexa-tag-view-select__btn-label ibexa-tag-view-select__btn-label--select"
63-
{% if is_single_select and has_value %}hidden{% endif %}
64-
>
65-
{{ 'tag_view_select.select'|trans({ '%type%': type })|desc('Select %type%') }}
66-
</span>
67-
<span
68-
class="ibexa-btn__label ibexa-tag-view-select__btn-label ibexa-tag-view-select__btn-label--change"
69-
{% if (is_single_select and not has_value) or not is_single_select %}hidden{% endif %}
70-
>
71-
{{ 'tag_view_select.change'|trans({ '%type%': type })|desc('Change %type%') }}
72-
</span>
73-
</button>
57+
<div class="ibexa-tag-view-select__actions">
58+
{% block actions %}
59+
<button
60+
type="button"
61+
{{ html.attributes(attr|default({})) }}
62+
>
63+
<span
64+
class="ibexa-btn__label ibexa-tag-view-select__btn-label ibexa-tag-view-select__btn-label--select"
65+
{% if is_single_select and has_value %}hidden{% endif %}
66+
>
67+
{{ 'tag_view_select.select'|trans({ '%type%': type })|desc('Select %type%') }}
68+
</span>
69+
<span
70+
class="ibexa-btn__label ibexa-tag-view-select__btn-label ibexa-tag-view-select__btn-label--change"
71+
{% if (is_single_select and not has_value) or not is_single_select %}hidden{% endif %}
72+
>
73+
{{ 'tag_view_select.change'|trans({ '%type%': type })|desc('Change %type%') }}
74+
</span>
75+
</button>
76+
{% endblock actions %}
77+
</div>
7478
</div>

0 commit comments

Comments
 (0)