@@ -112,7 +112,6 @@ export default class Dropdown extends Component {
112112
113113 _initAttributes ( ) {
114114 this . _assignComponentElementIds ( )
115- this . _setAriaAttributes ( )
116115 } ,
117116
118117 /************************************************************************
@@ -130,36 +129,6 @@ export default class Dropdown extends Component {
130129 Component . setAttributeIfNotSpecified ( this . menuElement , 'id' , id )
131130 } ,
132131
133- /************************************************************************
134- * Sets the dropdown component's ARIA attributes.
135- *
136- * @private
137- ***********************************************************************/
138-
139- _setAriaAttributes ( ) {
140- this . toggleElement . setAttribute ( 'aria-expanded' , false )
141-
142- if ( this . _isMenu ( ) ) {
143- this . menuElement . setAttribute ( 'role' , 'menu' )
144- this . toggleElement . setAttribute ( 'aria-haspopup' , 'menu' )
145- }
146- } ,
147-
148- /************************************************************************
149- * Determines if the dropdown is a menu for the purposes of ARIA
150- * attributes.
151- *
152- * @private
153- * @returns {boolean } Dropdown is menu
154- ***********************************************************************/
155-
156- _isMenu ( ) {
157- // Consider the dropdown a menu of action buttons if at least one
158- // non-hyperlink element is present
159-
160- return this . menuItems . some ( i => i . tagName != 'A' )
161- } ,
162-
163132 /************************************************************************
164133 * Removes the arrow icon from the tab order.
165134 *
0 commit comments