Skip to content

Commit

Permalink
UHF-9998: Fix announcement aria-label duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkkimaagi committed Oct 28, 2024
1 parent 6c34540 commit feaf5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/content/node--announcement--default.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

{% set link = content.field_announcement_link[0] %}

<section aria-label="{{ type_label }}" class="announcement js-announcement {{ block_modifier }} container" data-uuid="{{ node.uuid.value }}">
<section aria-label="{{ announcement_title }} {{ type_label }}" class="announcement js-announcement {{ block_modifier }} container" data-uuid="{{ node.uuid.value }}">
<div {{ create_attribute(announcement_attributes) }}>
{% set announcement_close_labelled_by = "announcement__close__aria-label--" ~ random() %}
<button type="button" class="announcement__close js-announcement__close--disabled" aria-labelledby="{{announcement_close_labelled_by}}">
Expand Down

0 comments on commit feaf5d1

Please sign in to comment.