Skip to content

Commit

Permalink
fix: fix aria-hidden on hidden icons (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored Feb 10, 2019
1 parent 2884955 commit 56f5a45
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/routes/_components/IconButton.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title={label}
aria-label={label}
aria-pressed={pressable ? !!pressed : void 0}
aria-hidden={ariaHidden}
class={computedClass}
{disabled}
delegate-key={delegateKey}
Expand All @@ -16,6 +17,7 @@
title={label}
aria-label={label}
aria-pressed={pressable ? !!pressed : void 0}
aria-hidden={ariaHidden}
class={computedClass}
focus-key={focusKey || ''}
{disabled}
Expand Down Expand Up @@ -117,7 +119,8 @@
pressed: false,
className: void 0,
delegateKey: void 0,
sameColorWhenPressed: false
sameColorWhenPressed: false,
ariaHidden: false
}),
store: () => store,
computed: {
Expand Down
1 change: 1 addition & 0 deletions src/routes/_components/dialog/components/MediaDialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
className="media-control-button media-control-button-dummy-spacer"
href="#fa-search"
label=""
ariaHidden={true}
/>
{/if}
{#if dots.length > 1}
Expand Down
2 changes: 2 additions & 0 deletions src/routes/_components/dialog/components/PinchZoomable.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
label="Zoom out"
href="#fa-search-minus"
on:click="zoomOut()"
ariaHidden={disabled}
/>
<IconButton
className="pinch-zoom-button pinch-zoom-button-zoom-in"
muted={true}
label="Zoom in"
href="#fa-search-plus"
on:click="zoomIn()"
ariaHidden={disabled}
/>
</div>
<style>
Expand Down

0 comments on commit 56f5a45

Please sign in to comment.