Skip to content

Commit

Permalink
[JENKINS-72018] Form entries in .repeated-chunk using .show-if-not-on…
Browse files Browse the repository at this point in the history
…ly CSS class are not hidden when they are alone (#8491)

* -	Add the missing definition for the .only CSS class inside of .repeated-chunk .show-if-not-only ones. Without these CSS classes, form entries using .show-if-not-only class are not hidden when alone.

* Update war/src/main/scss/form/_reorderable-list.scss

Co-authored-by: Daniel Beck <[email protected]>

* Update war/src/main/scss/form/_reorderable-list.scss

Co-authored-by: Daniel Beck <[email protected]>

* Update war/src/main/scss/form/_reorderable-list.scss

Co-authored-by: Daniel Beck <[email protected]>

---------

Co-authored-by: Francis Labrie <[email protected]>
Co-authored-by: Daniel Beck <[email protected]>
  • Loading branch information
3 people authored Sep 24, 2023
1 parent 56f9771 commit c0f6fbe
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion war/src/main/scss/form/_reorderable-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
visibility: visible;
}

.repeated-chunk.first.last .show-if-not-only {
visibility: hidden;
}

/* == nested repeatable elements / 2 deep == */
.repeated-chunk .repeated-chunk .show-if-last {
visibility: hidden;
Expand All @@ -50,6 +54,10 @@
visibility: visible;
}

.repeated-chunk .repeated-chunk.first.last .show-if-not-only {
visibility: hidden;
}

/* == nested repeatable elements / 3 deep == */
.repeated-chunk .repeated-chunk .repeated-chunk .show-if-last {
visibility: hidden;
Expand All @@ -67,10 +75,14 @@
visibility: hidden;
}

.repeated-chunk .repeated-chunk .show-if-not-only {
.repeated-chunk .repeated-chunk .repeated-chunk .show-if-not-only {
visibility: visible;
}

.repeated-chunk .repeated-chunk .repeated-chunk.first.last .show-if-not-only {
visibility: hidden;
}

/*
<DIV>s marked with to-be-removed is used in conjunction with repeatable.jelly and hetero-list.jelly
and represents a master copy that gets pulled out from HTML, then inserted later upon demand multiple times
Expand Down

0 comments on commit c0f6fbe

Please sign in to comment.