Skip to content

Commit

Permalink
💄 [open-formulieren/open-forms#2344] Put asterisk next to repeating g…
Browse files Browse the repository at this point in the history
…roup label
  • Loading branch information
SilviaAmAm committed Nov 17, 2022
1 parent 53a818e commit 5e6fc12
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/formio/templates/editGrid.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<div class="{{ctx.ofPrefix}}editgrid">
<div class="{{ctx.ofPrefix}}editgrid__label">{{ ctx.component.label }}</div>

<div class="{{ctx.ofPrefix}}editgrid__groups">
<ul>
{% ctx.rows.forEach(function(row, rowIndex) { %}
Expand Down
4 changes: 0 additions & 4 deletions src/scss/components/_editgrid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
padding: 0;
}

&__label {
@include h3;
}

&__group {
padding: $grid-margin-4;
border-style: solid;
Expand Down
8 changes: 8 additions & 0 deletions src/scss/components/_form-control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,12 @@
.control-label--hidden {
position: static !important;
}

&--editgrid {
& > label {
// Only the label of the whole repeating group has h3 style. Not the label of each field
// within a repeat of the group.
@include h3;
}
}
}

0 comments on commit 5e6fc12

Please sign in to comment.