mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 17:40:12 +00:00
4466eb3a2f
`[role]`s are retained for now as they are harmless although redundant when added to HTML5 elements. `role="contentinfo"` on `footer` is a special case to address a known VoiceOver bug. Bug: T66477 Change-Id: I540d9a41fc7fd580c5d61b90480e8745ae145850
29 lines
941 B
Plaintext
29 lines
941 B
Plaintext
{{!
|
|
@typedef object footerItem
|
|
@prop string id of list item element
|
|
@prop string html of list item
|
|
@prop footerItem[] items
|
|
|
|
@typedef object footerRow
|
|
@prop string className of list element
|
|
@prop string id of list element
|
|
@prop footerItem[] array-items
|
|
|
|
string html-hook-vector-before-footer output of VectorBeforeFooter hook
|
|
string|null html-userlangattributes a string of attribute HTML
|
|
footerRow[] array-footer-rows iterable list of footer rows
|
|
}}
|
|
{{{html-hook-vector-before-footer}}}
|
|
{{! `role` is unnecessary but kept to support selectors in any gadgets or user styles and
|
|
to mitigate a VoiceOver bug. }}
|
|
<footer id="footer" class="mw-footer" role="contentinfo" {{{html-userlangattributes}}}>
|
|
{{#array-footer-rows}}
|
|
<ul id="{{id}}" {{#className}}class="{{.}}"{{/className}}>
|
|
{{#array-items}}
|
|
<li id="{{id}}">{{{html}}}</li>
|
|
{{/array-items}}
|
|
</ul>
|
|
{{/array-footer-rows}}
|
|
<div style="clear: both;"></div>
|
|
</footer>
|