Skip to content

Commit

Permalink
FIO-9245 DataGrid: Update test files to match changes in @formio/boot…
Browse files Browse the repository at this point in the history
…strap

- Fixes unpredictable width for datagrid buttons
- See formio/bootstrap#118
  • Loading branch information
blakekrammes committed Dec 16, 2024
1 parent 28be07a commit 2c3160e
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions test/renders/component-bootstrap-datagrid-multiple.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
">
<tbody ref="datagrid-dataGrid-tbody" data-key="datagrid-dataGrid">
<tr ref="datagrid-dataGrid-row">
<td class="col-1">
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove">
<td>
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove" style="display: block; margin: 0 auto">
<i class="fa fa-remove-circle bi bi-x-circle"></i>
</button>
</td>
Expand Down
4 changes: 2 additions & 2 deletions test/renders/component-bootstrap-datagrid-required.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
">
<tbody ref="datagrid-dataGrid-tbody" data-key="datagrid-dataGrid">
<tr ref="datagrid-dataGrid-row">
<td class="col-1">
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove">
<td>
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove" style="display: block; margin: 0 auto">
<i class="fa fa-remove-circle bi bi-x-circle"></i>
</button>
</td>
Expand Down
4 changes: 2 additions & 2 deletions test/renders/component-bootstrap-datagrid.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
">
<tbody ref="datagrid-dataGrid-tbody" data-key="datagrid-dataGrid">
<tr ref="datagrid-dataGrid-row">
<td class="col-1">
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove">
<td>
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove" style="display: block; margin: 0 auto">
<i class="fa fa-remove-circle bi bi-x-circle"></i>
</button>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
<div ref="messageContainer" class="formio-errors invalid-feedback"></div>
</div>
</td>
<td class="col-1">
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove">
<td>
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove" style="display: block; margin: 0 auto">
<i class="fa fa-remove-circle bi bi-x-circle"></i>
</button>
</td>
Expand Down
8 changes: 4 additions & 4 deletions test/renders/form-bootstrap-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@
<div ref="messageContainer" class="formio-errors invalid-feedback"></div>
</div>
</td>
<td class="col-1">
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid2-removeRow" tabindex="0" aria-label="remove">
<td>
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid2-removeRow" tabindex="0" aria-label="remove" style="display: block; margin: 0 auto">
<i class="fa fa-remove-circle bi bi-x-circle"></i>
</button>
</td>
Expand Down Expand Up @@ -253,8 +253,8 @@
<div ref="messageContainer" class="formio-errors invalid-feedback"></div>
</div>
</td>
<td class="col-1">
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-conditionalDataGrid-removeRow" tabindex="0" aria-label="remove">
<td>
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-conditionalDataGrid-removeRow" tabindex="0" aria-label="remove" style="display: block; margin: 0 auto">
<i class="fa fa-remove-circle bi bi-x-circle"></i>
</button>
</td>
Expand Down
4 changes: 2 additions & 2 deletions test/renders/form-bootstrap-defaults.html
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@
<div ref="messageContainer" class="formio-errors invalid-feedback"></div>
</div>
</td>
<td class="col-1">
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove">
<td>
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove" style="display: block; margin: 0 auto">
<i class="fa fa-remove-circle bi bi-x-circle"></i>
</button>
</td>
Expand Down
4 changes: 2 additions & 2 deletions test/renders/form-bootstrap-formWithCustomFormatDate.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
<div ref="messageContainer" class="formio-errors invalid-feedback"></div>
</div>
</td>
<td class="col-1">
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove">
<td>
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove" style="display: block; margin: 0 auto">
<i class="fa fa-remove-circle bi bi-x-circle"></i>
</button>
</td>
Expand Down

0 comments on commit 2c3160e

Please sign in to comment.