Skip to content

Commit

Permalink
Menu/notify button aria-labels fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster committed May 31, 2022
1 parent a1a7209 commit 826ae52
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions templates/ScrollControls.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import React from 'react';

export default function NotifyScrollControls(props) {
const { _buttons, _prompts } = props;
const {
_previous,
} = _buttons;
const { _prompts } = props;
const {
_scroll
} = _prompts;
Expand All @@ -15,15 +12,15 @@ export default function NotifyScrollControls(props) {
className='btn-icon scrollsnap__controls-btn scrollsnap__controls-btn-up'
onClick={props.onClick}
data-direction='up'
aria-label={_previous.label}
aria-label={_scroll.previousLabel}
>
<div className='icon icon-controls-up' aria-hidden='true'></div>
</button>
<button
className='btn-icon scrollsnap__controls-btn scrollsnap__controls-btn-down'
onClick={props.onClick}
data-direction='down'
aria-label={_scroll.label}
aria-label={_scroll.nextLabel}
>
<div className='icon icon-controls-down' aria-hidden='true'></div>
</button>
Expand Down

0 comments on commit 826ae52

Please sign in to comment.