Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@
data-bs-dismiss="modal"
aria-label={closeBtnLabel}
onClick={hidePopup}
title={closeBtnLabel}
data-tooltip-container-selector={'.c-popup'}
>
<Icon name="discard" extraClasses="ibexa-icon--small" />
</button>
Expand Down Expand Up @@ -138,7 +140,10 @@
: title && (
<>
<div className="modal-header c-popup__header">
<h3 className="modal-title c-popup__headline" title={showTooltip ? title : null}>
<h3
className="modal-title c-popup__headline"
{...(showTooltip ? { title, 'data-tooltip-container-selector': '.c-popup' } : {})}

Check warning on line 145 in src/bundle/ui-dev/src/modules/common/popup/popup.component.js

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=ibexa_admin-ui&issues=AZq7drs1GoChscpFNu8n&open=AZq7drs1GoChscpFNu8n&pullRequest=1781
>
<span className="c-popup__title">{title}</span>
{subtitle && <span className="c-popup__subtitle">{subtitle}</span>}
</h3>
Expand Down
Loading