Skip to content

Commit

Permalink
D8CORE-4539 Removed "Role" attribute on figure element
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Jun 29, 2023
1 parent 07535de commit ba3f45b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions themes/stanford_basic/templates/content/filter-caption.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{#
/**
* @file
* Theme override for a filter caption.
*
* Returns HTML for a captioned image, audio, video or other tag.
*
* Available variables
* - string node: The complete HTML tag whose contents are being captioned.
* - string tag: The name of the HTML tag whose contents are being captioned.
* - string caption: The caption text.
* - string classes: The classes of the captioned HTML tag.
*/
#}
<figure {%- if classes %} class="{{ classes }}"{%- endif %}>
{{ node }}
<figcaption>{{ caption }}</figcaption>
</figure>

0 comments on commit ba3f45b

Please sign in to comment.