add aria-expanded to dropdown triggers

This commit is contained in:
KDSBrowne 2018-04-24 09:07:54 -07:00
parent 534b8ea746
commit 68fcf73227

View File

@ -59,8 +59,8 @@ export default class DropdownTrigger extends Component {
...restProps,
onClick: this.handleClick,
onKeyDown: this.handleKeyDown,
'aria-haspopup': true,
className: cx(children.props.className, className),
'aria-expanded': this.props.dropdownIsOpen,
});
return TriggerComponentBounded;