Skip to content

Commit

Permalink
accessibility: fixes issue/#2075 and issue/#2084
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Sep 17, 2018
2 parents d26ef35 + 12120fd commit 87ba7bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/graphic.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="graphic-inner component-inner" role="region" aria-label="{{_globals._components._graphic.ariaRegion}}">
<div class="graphic-inner component-inner">
{{> component this}}
<div class="graphic-widget component-widget{{#if _graphic.attribution}} graphic-widget-attribution{{/if}}">
<img src="{{_graphic.src}}" data-large="{{_graphic.large}}" data-small="{{_graphic.small}}"{{#if _graphic.alt}} aria-label="{{_graphic.alt}}" tabindex="0"{{else}} class="a11y-ignore" aria-hidden="true" tabindex="-1"{{/if}}/>
<img src="{{_graphic.src}}" data-large="{{_graphic.large}}" data-small="{{_graphic.small}}" aria-label="{{_graphic.alt}}" />
</div>
{{#if _graphic.attribution}}
<div class="graphic-attribution">{{{_graphic.attribution}}}</div>
Expand Down

0 comments on commit 87ba7bc

Please sign in to comment.