diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbutton.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbutton.directive.js
index f026a05c45ed..56416e3544bf 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbutton.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbutton.directive.js
@@ -67,6 +67,9 @@ Use this directive to render an umbraco button. The directive can be used to gen
@param {boolean=} disabled Set to true to disable the button.
@param {string=} addEllipsis Adds an ellipsis character (…) to the button label which means the button will open a dialog or prompt the user for more information.
@param {string=} showCaret Shows a caret on the right side of the button label
+@param {string=} autoFocus add autoFocus to the button
+@param {string=} hasPopup Used to expose to the accessibility API whether the button will trigger a popup or not
+@param {string=]} isExpanded Used to add an aria-expanded attribute and expose whether the button has expanded a popup or not
**/
@@ -96,7 +99,9 @@ Use this directive to render an umbraco button. The directive can be used to gen
alias: "@?",
addEllipsis: "@?",
showCaret: "@?",
- autoFocus: "@?"
+ autoFocus: "@?",
+ hasPopup: "@?",
+ isExpanded: ""
}
});
@@ -126,13 +131,13 @@ Use this directive to render an umbraco button. The directive can be used to gen
// make it possible to pass in multiple styles
if(vm.buttonStyle.startsWith("[") && vm.buttonStyle.endsWith("]")) {
-
+
// when using an attr it will always be a string so we need to remove square brackets
// and turn it into and array
var withoutBrackets = vm.buttonStyle.replace(/[\[\]']+/g,'');
// split array by , + make sure to catch whitespaces
var array = withoutBrackets.split(/\s?,\s?/g);
-
+
angular.forEach(array, function(item){
vm.style = vm.style + " " + "btn-" + item;
if(item === "block") {
diff --git a/src/Umbraco.Web.UI.Client/src/views/components/buttons/umb-button.html b/src/Umbraco.Web.UI.Client/src/views/components/buttons/umb-button.html
index 8163b2807be0..0c4c58c38ffd 100644
--- a/src/Umbraco.Web.UI.Client/src/views/components/buttons/umb-button.html
+++ b/src/Umbraco.Web.UI.Client/src/views/components/buttons/umb-button.html
@@ -9,25 +9,36 @@
-
+
{{vm.buttonLabel}}
-
+
-