@vaadin/vaadin-select
Advanced tools
Comparing version 2.1.4 to 2.1.5
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-select", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"main": "vaadin-select.js", | ||
@@ -16,0 +16,0 @@ "author": "Vaadin Ltd", |
@@ -169,3 +169,3 @@ /** | ||
<div part="value"></div> | ||
<div part="toggle-button" slot="suffix" role="button" aria-label="Toggle"></div> | ||
<div part="toggle-button" slot="suffix" role="button" aria-haspopup="listbox" aria-label="Toggle"></div> | ||
</vaadin-select-text-field> | ||
@@ -183,3 +183,3 @@ <vaadin-select-overlay opened="{{opened}}" with-backdrop="[[_phone]]" phone\$="[[_phone]]" theme\$="[[theme]]"></vaadin-select-overlay> | ||
static get version() { | ||
return '2.1.4'; | ||
return '2.1.5'; | ||
} | ||
@@ -317,3 +317,3 @@ | ||
'_updateSelectedItem(value, _items)', | ||
'_updateAriaExpanded(opened, _toggleElement)', | ||
'_updateAriaExpanded(opened, _toggleElement, _inputElement)', | ||
'_templateOrRendererChanged(_contentTemplate, renderer, _overlayElement)' | ||
@@ -423,2 +423,3 @@ ]; | ||
this._items = this._menuElement.items; | ||
this._items.forEach(item => item.setAttribute('role', 'option')); | ||
}); | ||
@@ -431,2 +432,4 @@ this._menuElement.addEventListener('selected-changed', e => this._updateValueSlot()); | ||
}, true); | ||
this._menuElement.setAttribute('role', 'listbox'); | ||
} | ||
@@ -566,4 +569,7 @@ } | ||
_updateAriaExpanded(opened, toggleElement) { | ||
_updateAriaExpanded(opened, toggleElement, inputElement) { | ||
toggleElement && toggleElement.setAttribute('aria-expanded', opened); | ||
if (inputElement && inputElement.focusElement) { | ||
inputElement.focusElement.setAttribute('aria-expanded', opened); | ||
} | ||
} | ||
@@ -570,0 +576,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48017
823