Skip to content

Commit 072adfa

Browse files
committedDec 17, 2024
FIO-9245 DataGrid: Update test files to match changes in @formio/bootstrap
- Fixes unpredictable width for datagrid buttons - See formio/bootstrap#118
1 parent 28be07a commit 072adfa

9 files changed

+21
-21
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
"homepage": "https://github.com/formio/formio.js#readme",
8282
"dependencies": {
83-
"@formio/bootstrap": "3.0.0-dev.111.ae7f187",
83+
"@formio/bootstrap": "3.0.0-dev.118.f146cb4",
8484
"@formio/choices.js": "^10.2.1",
8585
"@formio/core": "2.1.0-dev.193.68cf8c3",
8686
"@formio/text-mask-addons": "3.8.0-formio.4",

‎test/renders/component-bootstrap-datagrid-multiple.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
">
77
<tbody ref="datagrid-dataGrid-tbody" data-key="datagrid-dataGrid">
88
<tr ref="datagrid-dataGrid-row">
9-
<td class="col-1">
10-
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove">
9+
<td>
10+
<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">
1111
<i class="fa fa-remove-circle bi bi-x-circle"></i>
1212
</button>
1313
</td>

‎test/renders/component-bootstrap-datagrid-required.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
">
77
<tbody ref="datagrid-dataGrid-tbody" data-key="datagrid-dataGrid">
88
<tr ref="datagrid-dataGrid-row">
9-
<td class="col-1">
10-
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove">
9+
<td>
10+
<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">
1111
<i class="fa fa-remove-circle bi bi-x-circle"></i>
1212
</button>
1313
</td>

‎test/renders/component-bootstrap-datagrid.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
">
77
<tbody ref="datagrid-dataGrid-tbody" data-key="datagrid-dataGrid">
88
<tr ref="datagrid-dataGrid-row">
9-
<td class="col-1">
10-
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove">
9+
<td>
10+
<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">
1111
<i class="fa fa-remove-circle bi bi-x-circle"></i>
1212
</button>
1313
</td>

‎test/renders/form-bootstrap-calculateValueWithManualOverride.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
<div ref="messageContainer" class="formio-errors invalid-feedback"></div>
6666
</div>
6767
</td>
68-
<td class="col-1">
69-
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove">
68+
<td>
69+
<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">
7070
<i class="fa fa-remove-circle bi bi-x-circle"></i>
7171
</button>
7272
</td>

‎test/renders/form-bootstrap-data.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@
199199
<div ref="messageContainer" class="formio-errors invalid-feedback"></div>
200200
</div>
201201
</td>
202-
<td class="col-1">
203-
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid2-removeRow" tabindex="0" aria-label="remove">
202+
<td>
203+
<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">
204204
<i class="fa fa-remove-circle bi bi-x-circle"></i>
205205
</button>
206206
</td>
@@ -253,8 +253,8 @@
253253
<div ref="messageContainer" class="formio-errors invalid-feedback"></div>
254254
</div>
255255
</td>
256-
<td class="col-1">
257-
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-conditionalDataGrid-removeRow" tabindex="0" aria-label="remove">
256+
<td>
257+
<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">
258258
<i class="fa fa-remove-circle bi bi-x-circle"></i>
259259
</button>
260260
</td>

‎test/renders/form-bootstrap-defaults.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@
426426
<div ref="messageContainer" class="formio-errors invalid-feedback"></div>
427427
</div>
428428
</td>
429-
<td class="col-1">
430-
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove">
429+
<td>
430+
<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">
431431
<i class="fa fa-remove-circle bi bi-x-circle"></i>
432432
</button>
433433
</td>

‎test/renders/form-bootstrap-formWithCustomFormatDate.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
<div ref="messageContainer" class="formio-errors invalid-feedback"></div>
6565
</div>
6666
</td>
67-
<td class="col-1">
68-
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="datagrid-dataGrid-removeRow" tabindex="0" aria-label="remove">
67+
<td>
68+
<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">
6969
<i class="fa fa-remove-circle bi bi-x-circle"></i>
7070
</button>
7171
</td>

‎yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@
209209
resolved "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz#de633db3ec2ef6a3c89e2f19038063e8a122e2c2"
210210
integrity sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==
211211

212-
"@formio/bootstrap@3.0.0-dev.111.ae7f187":
213-
version "3.0.0-dev.111.ae7f187"
214-
resolved "https://registry.npmjs.org/@formio/bootstrap/-/bootstrap-3.0.0-dev.111.ae7f187.tgz#fc7021a6c10db7cc1bc5d17e140cd93451e991f2"
215-
integrity sha512-96+YO+jOJ208g1p/EvW+duNLTyCytWu0aXVCu9HaTMQ1icO2zX4okreCUaE9BPp+/aoEs8VzRE/U+pfsb27Bew==
212+
"@formio/bootstrap@3.0.0-dev.118.f146cb4":
213+
version "3.0.0-dev.118.f146cb4"
214+
resolved "https://registry.yarnpkg.com/@formio/bootstrap/-/bootstrap-3.0.0-dev.118.f146cb4.tgz#a0f1b4304be38f79f556ad42e7f233fe7ad762c6"
215+
integrity sha512-EAKiSdkV9dnvGr93FFjzJRNL2Abmnb6NBBBCppT8iRxmTctN3LdrvofkxTUc99cCzUR5LGAVy2Kq2ZaW2kvbJw==
216216

217217
"@formio/choices.js@^10.2.1":
218218
version "10.2.1"

0 commit comments

Comments
 (0)