Skip to content

Commit

Permalink
Fix(web-twig): Fix condition to render aria-labelledby attribute in…
Browse files Browse the repository at this point in the history
… the Modal component
  • Loading branch information
dlouhak authored and literat committed Aug 14, 2023
1 parent d7480a5 commit 70fb37b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

{# Attributes #}
{%- set _idAttr = _id ? 'id="' ~ _id | escape('html_attr') ~ '"' : null -%}
{%- set _ariaLabelledbyAttr = _id ? 'aria-labelledby="' ~ _titleId | escape('html_attr') ~ '"' : null -%}
{%- set _ariaLabelledbyAttr = _titleId ? 'aria-labelledby="' ~ _titleId | escape('html_attr') ~ '"' : null -%}

{# Miscellaneous #}
{%- set _styleProps = useStyleProps(props) -%}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</title>
</head>
<body>
<dialog aria-label="Modal Title" class="Modal" id="modal-example-mini" aria-labelledby="">
<dialog aria-label="Modal Title" class="Modal" id="modal-example-mini">
<article class="ModalDialog ModalDialog--expandOnMobile">
<header class="ModalHeader">
<button aria-controls="modal-example-mini" aria-expanded="false" data-spirit-dismiss="modal" data-spirit-target="#modal-example-mini" class="Button Button--tertiary Button--medium Button--square" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24" fill="none" id="a79dff7a255f69bbe6e39d594aa2275b" aria-hidden="true">
Expand Down

0 comments on commit 70fb37b

Please sign in to comment.