Skip to content

Commit

Permalink
Add data-reach-menu-button attribute to MenuButton
Browse files Browse the repository at this point in the history
  • Loading branch information
brendancarney authored and ryanflorence committed Sep 4, 2018
1 parent d037199 commit 5434cbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/menu-button/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ let MenuButton = React.forwardRef(({ onClick, onKeyDown, ...props }, ref) => (
id={state.buttonId}
aria-haspopup="menu"
aria-expanded={state.isOpen}
data-reach-menu-button
type="button"
ref={node => {
rectRef(node);
Expand Down

0 comments on commit 5434cbf

Please sign in to comment.