From 72d0436e2520e55b97b35c26e208063d3609b20b Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Tue, 12 Jan 2016 10:06:32 -0800 Subject: [PATCH] Changing Submit-button color to grey when disabled --- awx/ui/client/legacy-styles/forms.less | 4 ++++ awx/ui/client/src/shared/branding/colors.default.less | 1 + awx/ui/client/src/shared/form-generator.js | 3 --- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/awx/ui/client/legacy-styles/forms.less b/awx/ui/client/legacy-styles/forms.less index cdd7690fdf..1cd8059d7c 100644 --- a/awx/ui/client/legacy-styles/forms.less +++ b/awx/ui/client/legacy-styles/forms.less @@ -80,6 +80,10 @@ padding-right: 15px; } +.Form-saveButton:disabled{ + background-color: @submit-button-bg-dis; +} + .Form-saveButton:hover{ background-color: @submit-button-bg-hov; color: @submit-button-text; diff --git a/awx/ui/client/src/shared/branding/colors.default.less b/awx/ui/client/src/shared/branding/colors.default.less index e9421c927b..34017ba341 100644 --- a/awx/ui/client/src/shared/branding/colors.default.less +++ b/awx/ui/client/src/shared/branding/colors.default.less @@ -82,6 +82,7 @@ @submit-button-text: @default-bg; @submit-button-bg: @default-succ; @submit-button-bg-hov: @default-succ-hov; +@submit-button-bg-dis: @default-second-border; // footer @copyright-text: @default-interface-txt; diff --git a/awx/ui/client/src/shared/form-generator.js b/awx/ui/client/src/shared/form-generator.js index ca3037d7ce..359d86ccaf 100644 --- a/awx/ui/client/src/shared/form-generator.js +++ b/awx/ui/client/src/shared/form-generator.js @@ -1565,9 +1565,6 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat } } html += ">"; - html += SelectIcon({ - action: btn - }); html += " " + button.label + "\n"; } }