Skip to content

Commit

Permalink
- Add the missing definition for the .only CSS class inside of .repea…
Browse files Browse the repository at this point in the history
…ted-chunk .show-if-not-only ones. Without these CSS classes, form entries using .show-if-not-only class are not hidden when alone.
  • Loading branch information
Francis Labrie committed Sep 14, 2023
1 parent c5fbbbe commit 2cae901
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.only .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.only .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.only .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 2cae901

Please sign in to comment.