A11Y: Category logos are decorative, set empty alt (#12830)
This commit is contained in:
parent
a74783d157
commit
ed373b2e7b
|
@ -10,6 +10,7 @@
|
||||||
class="logo"
|
class="logo"
|
||||||
width=c.uploaded_logo.width
|
width=c.uploaded_logo.width
|
||||||
height=c.uploaded_logo.height
|
height=c.uploaded_logo.height
|
||||||
|
alt=""
|
||||||
}}
|
}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
class="logo"
|
class="logo"
|
||||||
width=c.uploaded_logo.width
|
width=c.uploaded_logo.width
|
||||||
height=c.uploaded_logo.height
|
height=c.uploaded_logo.height
|
||||||
|
alt=""
|
||||||
}}
|
}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -59,7 +60,8 @@
|
||||||
src=sc.uploaded_logo.url
|
src=sc.uploaded_logo.url
|
||||||
class="logo"
|
class="logo"
|
||||||
width=sc.uploaded_logo.width
|
width=sc.uploaded_logo.width
|
||||||
height=sc.uploaded_logo.height}}
|
height=sc.uploaded_logo.height
|
||||||
|
alt=""}}
|
||||||
</span>
|
</span>
|
||||||
{{category-link sc hideParent="true"}}
|
{{category-link sc hideParent="true"}}
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
src=category.uploaded_logo.url
|
src=category.uploaded_logo.url
|
||||||
class="category-logo"
|
class="category-logo"
|
||||||
width=category.uploaded_logo.width
|
width=category.uploaded_logo.width
|
||||||
height=category.uploaded_logo.height}}
|
height=category.uploaded_logo.height
|
||||||
|
alt=""}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{#if src}}
|
{{#if src}}
|
||||||
<div class="{{class}} aspect-image" style={{style}}>
|
<div class="{{class}} aspect-image" style={{style}}>
|
||||||
<img src={{cdnSrc}} width={{width}} height={{height}}>
|
<img src={{cdnSrc}} width={{width}} height={{height}} alt={{alt}}>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
class="category-logo"
|
class="category-logo"
|
||||||
width=category.uploaded_logo.width
|
width=category.uploaded_logo.width
|
||||||
height=category.uploaded_logo.height
|
height=category.uploaded_logo.height
|
||||||
|
alt=""
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{{#if category.description}}
|
{{#if category.description}}
|
||||||
|
|
Loading…
Reference in New Issue