diff --git a/src/formio/templates/editGrid.ejs b/src/formio/templates/editGrid.ejs index 12a770e2d..b82160a76 100644 --- a/src/formio/templates/editGrid.ejs +++ b/src/formio/templates/editGrid.ejs @@ -8,18 +8,24 @@ {{row}} {% if (ctx.openRows[rowIndex] && !ctx.readOnly) { %} -
+ {% } %} diff --git a/src/formio/templates/editGridRow.ejs b/src/formio/templates/editGridRow.ejs index f2ff77e34..a52e453f4 100644 --- a/src/formio/templates/editGridRow.ejs +++ b/src/formio/templates/editGridRow.ejs @@ -6,15 +6,13 @@ {% } %} {% if (!ctx.self.options.readOnly) { %} - + {% } %} diff --git a/src/scss/components/_button-group.scss b/src/scss/components/_button-group.scss index bcc15b13f..da3064028 100644 --- a/src/scss/components/_button-group.scss +++ b/src/scss/components/_button-group.scss @@ -8,6 +8,11 @@ .utrecht-button-group { // A button group used in an edit grid item @include bem.modifier('openforms-editgrid') { + // TODO: move to design tokens + --utrecht-button-group-margin-block-start: 12px; + // there needs to be some vertical spacing between the body and button row + --utrecht-space-around: 1; + // there currently does not exist a design token in the upstream component, and // the alignment is also contextual, so we opt for an open-forms extension that // can be tweaked with proprietary design tokens.