Skip to content

Commit f57e224

Browse files
committed
IBX-10398: Modal close btn styles update
1 parent d1d4155 commit f57e224

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/bundle/Resources/public/scss/_modals.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
.close {
1818
@include close-button();
19+
padding: calculateRem(2px);
1920
}
2021
}
2122

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,18 @@
5353
{% set close_btn_title = 'close_btn.title'|trans({}, 'ibexa_modal')|desc('Close') %}
5454
{% set close_btn_aria_label = 'close_btn.aria_label'|trans({}, 'ibexa_modal')|desc('Close') %}
5555
{% set attr_close_btn = attr_close_btn|default({})|merge({
56-
class: ('close ' ~ attr_close_btn.class|default(''))|trim,
56+
class: ('close ibexa-btn ibexa-btn--ghost ' ~ attr_close_btn.class|default(''))|trim,
5757
type: attr_close_btn.type|default('button'),
5858
title: attr_close_btn.title|default(close_btn_title),
5959
'data-bs-dismiss': attr_close_btn['data-bs-dismiss']|default('modal'),
60+
'data-tooltip-container-selector': '.modal-dialog',
6061
'aria-label': attr_close_btn['aria-label']|default(close_btn_aria_label),
6162
}) %}
6263

6364
{% set close_btn %}
6465
<button {{ html.attributes(attr_close_btn) }}>
6566
<svg
66-
class="ibexa-icon ibexa-icon--small-medium"
67+
class="ibexa-icon ibexa-icon--medium"
6768
aria-hidden="true"
6869
>
6970
<use xlink:href="{{ ibexa_icon_path('discard') }}"></use>

0 commit comments

Comments
 (0)