Skip to content

Commit 0159ba5

Browse files
committed
IBX-10933: Fix tooltip display by adding data-tooltip-container for popup
1 parent 0ebe2b3 commit 0159ba5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/bundle/ui-dev/src/modules/common/popup/popup.component.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ const Popup = ({
109109
data-bs-dismiss="modal"
110110
aria-label={closeBtnLabel}
111111
onClick={hidePopup}
112+
title={closeBtnLabel}
113+
data-tooltip-container-selector={'.c-popup'}
112114
>
113115
<Icon name="discard" extraClasses="ibexa-icon--small" />
114116
</button>
@@ -138,7 +140,10 @@ const Popup = ({
138140
: title && (
139141
<>
140142
<div className="modal-header c-popup__header">
141-
<h3 className="modal-title c-popup__headline" title={showTooltip ? title : null}>
143+
<h3
144+
className="modal-title c-popup__headline"
145+
{...(showTooltip ? { title, 'data-tooltip-container-selector': '.c-popup' } : {})}
146+
>
142147
<span className="c-popup__title">{title}</span>
143148
{subtitle && <span className="c-popup__subtitle">{subtitle}</span>}
144149
</h3>

0 commit comments

Comments
 (0)