Skip to content

Commit

Permalink
Fix: React HotgraphicPopup error for conditional id attribute (fixes
Browse files Browse the repository at this point in the history
…#332)

* Fix: React HotgraphicPopup error fro conditional `id` attribute (fixes #331).

* Fixed eslint issue.
  • Loading branch information
danielghost authored Nov 20, 2024
1 parent f75e241 commit 0aeef85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/hotgraphicPopup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function HotgraphicPopup(props) {

{title &&
<div
id={_isActive && 'notify-heading'}
id={_isActive ? 'notify-heading' : null}
className="hotgraphic-popup__item-title"
role="heading"
aria-level={a11y.ariaLevel({ level: 'notify' })}
Expand Down

0 comments on commit 0aeef85

Please sign in to comment.