Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Add aria-label to BackToTopButton (#290)
Browse files Browse the repository at this point in the history
* add aria-label to BackToTopButton

* Update CHANGELOG.md
  • Loading branch information
Katy DeCorah authored Jul 8, 2020
1 parent a5f161a commit 7ef0b8d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Main

- Add aria-label to `BackToTopButton`. [#290](https://github.com/mapbox/dr-ui/pull/290)

## 0.29.1

- Remove `limiter` from `Topbar`. [#282](https://github.com/mapbox/dr-ui/pull/282)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ exports[`back-top-top-button Just the button renders as expected 1`] = `
onKeyDown={[Function]}
>
<button
aria-label="Back to top"
className="btn--blue w60 h60 px0 round-full shadow-darken25 color-white flex-parent flex-parent--center-main flex-parent--center-cross"
disabled={false}
onClick={[Function]}
Expand Down
3 changes: 2 additions & 1 deletion src/components/back-to-top-button/back-to-top-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export default class BackToTopButton extends React.Component {
}}
passthroughProps={{
className:
'btn--blue w60 h60 px0 round-full shadow-darken25 color-white flex-parent flex-parent--center-main flex-parent--center-cross'
'btn--blue w60 h60 px0 round-full shadow-darken25 color-white flex-parent flex-parent--center-main flex-parent--center-cross',
'aria-label': 'Back to top'
}}
>
<Icon name="arrow-up" size={30} />
Expand Down

0 comments on commit 7ef0b8d

Please sign in to comment.