17 lines
496 B
JavaScript
17 lines
496 B
JavaScript
![]() |
/**
|
||
|
* Copyright (c) Nicolas Gallagher.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*
|
||
|
*
|
||
|
*/
|
||
|
var buttonLikeRoles = {
|
||
|
// ARIA button behaves like native 'button' element
|
||
|
button: true,
|
||
|
// ARIA menuitem responds to Enter/Space like a button. Spec requires AT to
|
||
|
// ignore ARIA roles of any children.
|
||
|
// https://www.w3.org/WAI/GL/wiki/Using_ARIA_menus
|
||
|
menuitem: true
|
||
|
};
|
||
|
export default buttonLikeRoles;
|