diff --git a/core/modules/widgets/button.js b/core/modules/widgets/button.js index 5b15c875f..9186e1808 100644 --- a/core/modules/widgets/button.js +++ b/core/modules/widgets/button.js @@ -66,6 +66,9 @@ ButtonWidget.prototype.render = function(parent,nextSibling) { if(this["aria-label"]) { domNode.setAttribute("aria-label",this["aria-label"]); } + if(this.popup || this.popupTitle) { + domNode.setAttribute("aria-expanded",isPoppedUp ? "true" : "false"); + } // Set the tabindex if(this.tabIndex) { domNode.setAttribute("tabindex",this.tabIndex);