From 69563eb74e5795b9cf1a0c530ec3bc994062693f Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Thu, 26 Sep 2019 10:38:55 -0600 Subject: [PATCH] Add buttonClasses option to modals --- app/views/partials/modal.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/partials/modal.js b/app/views/partials/modal.js index 69ddb16..ccf24f2 100644 --- a/app/views/partials/modal.js +++ b/app/views/partials/modal.js @@ -5,6 +5,7 @@ export const modal = (modalId, controller, contentHTML, options = {}) => { * controller : Pass the controller class with state; Requires get/set for openModal in state. * buttonHTML : Displayed in place of the default button to open the modal * buttonText : Displayed if no buttonHTML is specified + * buttonClasses : Used with buttonText. If excluded, 'button' is used. * noHeader : Set to `true` and exclude headerHTML to not include a modal header * headerHTML : Displayed in place of the default header; Recommended to use `
` tag * headerText : Displayed in an `

` if no header is specified @@ -19,7 +20,9 @@ export const modal = (modalId, controller, contentHTML, options = {}) => { return [ ( typeof options.buttonHTML === 'undefined' - ? html`` + ? html`` : options.buttonHTML ),