From 8810c275a27cca5cbb9565c7ea816cf22c98d338 Mon Sep 17 00:00:00 2001
From: Jan Faracik <43062514+janfaracik@users.noreply.github.com>
Date: Mon, 25 Oct 2021 20:34:39 +0100
Subject: [PATCH 1/4] Delete button style - it'll be updated in future buttons
MR
---
.../lib/hudson/newFromList/form.jelly | 4 +-
war/src/main/less/modules/form.less | 75 -------------------
2 files changed, 1 insertion(+), 78 deletions(-)
diff --git a/core/src/main/resources/lib/hudson/newFromList/form.jelly b/core/src/main/resources/lib/hudson/newFromList/form.jelly
index 0c1daf0f104f..7996750ecac0 100644
--- a/core/src/main/resources/lib/hudson/newFromList/form.jelly
+++ b/core/src/main/resources/lib/hudson/newFromList/form.jelly
@@ -108,9 +108,7 @@ THE SOFTWARE.
-->
-
+
diff --git a/war/src/main/less/modules/form.less b/war/src/main/less/modules/form.less
index d24593a8fe2c..402cebbc1a14 100644
--- a/war/src/main/less/modules/form.less
+++ b/war/src/main/less/modules/form.less
@@ -281,81 +281,6 @@
}
}
-.jenkins-button {
- position: relative;
- display: inline-flex;
- justify-content: center;
- align-items: center;
- min-height: 37px;
- background: var(--btn-secondary-bg);
- color: var(--btn-secondary-color);
- padding: 10px 15px;
- border-radius: 10px;
- cursor: pointer;
- text-shadow: 0 1px 0 var(--background-color);
- box-shadow: var(--form-input-glow);
- text-decoration: none;
- outline: none;
- font-weight: 500;
- transition: var(--standard-transition);
- border: 2px solid var(--btn-secondary-border);
-
- &::after {
- content: "";
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- border-radius: inherit;
- color: inherit;
- border-bottom: 2px solid var(--button-foreground-color);
- opacity: 0.05;
- }
-
- &:hover {
- background: var(--btn-secondary-bg--hover);
- color: var(--btn-secondary-color--hover);
- }
-
- &:active {
- background: var(--btn-secondary-bg--focus);
- color: var(--btn-secondary-color--focus);
- box-shadow: var(--form-input-glow--focus);
- }
-
- &--large {
- font-size: 0.9rem;
- padding: 12px 20px;
- }
-
- &--primary {
- background: var(--btn-primary-bg);
- color: white;
- border: none;
-
- &:hover {
- background: var(--btn-primary-bg-hover);
- color: white;
- }
-
- &:active {
- background: var(--btn-primary-bg-active);
- color: white;
- }
-
- &::after {
- border-bottom: 2px solid var(--btn-primary-bg);
- opacity: 0.1;
- }
- }
-
- &:disabled {
- opacity: 0.5;
- pointer-events: none;
- }
-}
-
.jenkins-help-button {
position: relative;
width: 18px;
From 74d66324e1e9dac22991069709be663187ec679c Mon Sep 17 00:00:00 2001
From: Jan Faracik <43062514+janfaracik@users.noreply.github.com>
Date: Tue, 26 Oct 2021 20:09:50 +0100
Subject: [PATCH 2/4] Update description of ID attribute for form - thanks
@timja
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
---
core/src/main/resources/lib/form/form.jelly | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/src/main/resources/lib/form/form.jelly b/core/src/main/resources/lib/form/form.jelly
index 39f30b49842d..208177abb77d 100644
--- a/core/src/main/resources/lib/form/form.jelly
+++ b/core/src/main/resources/lib/form/form.jelly
@@ -45,7 +45,7 @@ THE SOFTWARE.
@enctype of the <form> HTML element.
- ID of the HTML element.
+ ID of the form.
@target of the <form> HTML element. Works like <a target="...">
From 70782b148c3be104fdc03fca71f936f4c84834c6 Mon Sep 17 00:00:00 2001
From: Jan Faracik <43062514+janfaracik@users.noreply.github.com>
Date: Tue, 26 Oct 2021 20:26:46 +0100
Subject: [PATCH 3/4] Fix Global Credentials' Verify Configuration button being
hidden by the floating submit bar
---
war/src/main/less/modules/form.less | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/war/src/main/less/modules/form.less b/war/src/main/less/modules/form.less
index 402cebbc1a14..fb932baad5d3 100644
--- a/war/src/main/less/modules/form.less
+++ b/war/src/main/less/modules/form.less
@@ -5,6 +5,16 @@
max-width: var(--form-item-max-width);
margin-bottom: 1.75rem;
+ // Workaround for float:right button controls
+ // (eg Global Credentials' Verify Configuration button being hidden by the floating submit bar)
+ &::after {
+ content: " "; /* Older browser do not support empty content */
+ visibility: hidden;
+ display: block;
+ height: 0;
+ clear: both;
+ }
+
&--small {
max-width: var(--form-item-max-width--small);
}
From 5d6476c7a203b4627142dba47ef1b19e216466c3 Mon Sep 17 00:00:00 2001
From: Jan Faracik <43062514+janfaracik@users.noreply.github.com>
Date: Tue, 26 Oct 2021 20:48:50 +0100
Subject: [PATCH 4/4] Fix checkbox label not appearing next to checkbox
---
war/src/main/webapp/scripts/hudson-behavior.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/war/src/main/webapp/scripts/hudson-behavior.js b/war/src/main/webapp/scripts/hudson-behavior.js
index acaae479e0ed..0a2f0cb403b7 100644
--- a/war/src/main/webapp/scripts/hudson-behavior.js
+++ b/war/src/main/webapp/scripts/hudson-behavior.js
@@ -1491,7 +1491,7 @@ function rowvgStartEachRow(recursive,f) {
function findSettingName(formGroup) {
for (var i=0; i