Skip to content

Commit d74f7eb

Browse files
authored
chore(deps): enable a11y in Biome and update all dependencies (#471)
1 parent 451648c commit d74f7eb

25 files changed

Lines changed: 342 additions & 300 deletions

biome.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
"!**/node_modules/**"
5858
],
5959
"rules": {
60-
"a11y": "off",
6160
"correctness": {
6261
"useImportExtensions": {
6362
"options": {

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@
5656
"pnpm": "10.x"
5757
},
5858
"devDependencies": {
59-
"@biomejs/biome": "^2.4.2",
60-
"@lerna-lite/cli": "^4.11.2",
61-
"@lerna-lite/publish": "^4.11.2",
62-
"@lerna-lite/watch": "^4.11.2",
59+
"@biomejs/biome": "^2.4.5",
60+
"@lerna-lite/cli": "^4.11.3",
61+
"@lerna-lite/publish": "^4.11.3",
62+
"@lerna-lite/watch": "^4.11.3",
6363
"@playwright/test": "^1.58.2",
64-
"@types/node": "^24.10.13",
65-
"conventional-changelog-conventionalcommits": "^9.1.0",
64+
"@types/node": "^24.11.0",
65+
"conventional-changelog-conventionalcommits": "^9.2.0",
6666
"cross-env": "catalog:",
6767
"npm-run-all2": "^8.0.4",
6868
"remove-glob": "catalog:",

packages/demo/src/examples/example08.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ <h2 class="bd-title">
1717
</span>
1818
</span>
1919
</h2>
20-
<div class="demo-subtitle">Use <code>data</code>as data source.</div>
20+
<div class="demo-subtitle">
21+
Use <code>data</code>as data source. Also note when using <code>data</code>, you could also use any type of HTML container element.
22+
For example a span, a div or event an input (e.g. the last one below is targeting a span)
23+
</div>
2124
</div>
2225
</div>
2326

@@ -49,6 +52,6 @@ <h2 class="bd-title">
4952
<div class="mb-3 row">
5053
<label class="col-sm-2">Group Array </label>
5154

52-
<div class="col-sm-10"><select id="group" class="full-width" multiple></select></div>
55+
<div class="col-sm-10"><span id="group" class="full-width"></span></div>
5356
</div>
5457
</div>

packages/demo/src/examples/example08.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export default class Example {
9292

9393
this.ms5 = multipleSelect('#group', {
9494
dataTest: 'select5',
95+
single: false,
9596
data: [
9697
{
9798
type: 'optgroup',

packages/demo/src/examples/example13.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ <h2 class="bd-title">
2929
<label class="col-sm-2">Create </label>
3030

3131
<div class="col-sm-10">
32-
<button id="destroyBtn" class="btn btn-danger btn-sm">Destroy</button>
33-
<button id="createBtn" class="btn btn-primary btn-sm">Dynamically Create</button>
34-
<button id="modifyBtn" class="btn btn-outline-secondary btn-sm">Modify Data</button>
32+
<button id="destroyBtn" type="button" class="btn btn-danger btn-sm">Destroy</button>
33+
<button id="createBtn" type="button" class="btn btn-primary btn-sm">Dynamically Create</button>
34+
<button id="modifyBtn" type="button" class="btn btn-outline-secondary btn-sm">Modify Data</button>
3535
</div>
3636
</div>
3737

packages/demo/src/main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</a>
77
<div class="github-button-container">
88
<a href="https://github.com/ghiscoding/multiple-select-vanilla">
9-
<img src="https://img.shields.io/github/stars/ghiscoding/multiple-select-vanilla?style=social">
9+
<img src="https://img.shields.io/github/stars/ghiscoding/multiple-select-vanilla?style=social" alt="GitHub stars">
1010
</a>
1111
</div>
1212
<button

packages/demo/src/methods/methods01.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h2 class="bd-title">
2323
<div class="mb-3 row">
2424
<label class="col-sm-2">Methods </label>
2525

26-
<div class="col-sm-10"><button id="getOptions" class="btn btn-secondary">getOptions</button></div>
26+
<div class="col-sm-10"><button id="getOptions" type="button" class="btn btn-secondary">getOptions</button></div>
2727
</div>
2828

2929
<div class="mb-3 row">

packages/demo/src/methods/methods02.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ <h2 class="bd-title">
2626
<label class="col-sm-2">Methods </label>
2727

2828
<div class="col-sm-5">
29-
<button id="refreshOptions" class="btn btn-secondary">refreshOptions</button>
30-
<button id="setDarkMode" class="btn btn-secondary">Toggle Dark Mode</button>
29+
<button id="refreshOptions" type="button" class="btn btn-secondary">refreshOptions</button>
30+
<button id="setDarkMode" type="button" class="btn btn-secondary">Toggle Dark Mode</button>
3131
</div>
3232
</div>
3333

packages/demo/src/methods/methods03.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ <h2 class="bd-title">
2727
<label class="col-sm-2">Methods </label>
2828

2929
<div class="col-sm-10">
30-
<button id="setSelectsBtn" class="btn btn-secondary">SetSelects</button>
31-
<button id="getSelectsBtn" class="btn btn-secondary">GetSelects</button>
32-
<button id="setSelectsBtn2" class="btn btn-secondary">SetSelects by 'text'</button>
33-
<button id="getSelectsBtn2" class="btn btn-secondary">GetSelects by 'text'</button>
30+
<button id="setSelectsBtn" type="button" class="btn btn-secondary">SetSelects</button>
31+
<button id="getSelectsBtn" type="button" class="btn btn-secondary">GetSelects</button>
32+
<button id="setSelectsBtn2" type="button" class="btn btn-secondary">SetSelects by 'text'</button>
33+
<button id="getSelectsBtn2" type="button" class="btn btn-secondary">GetSelects by 'text'</button>
3434
</div>
3535
</div>
3636

packages/demo/src/methods/methods04.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ <h2 class="bd-title">
2626
<label class="col-sm-2">Methods </label>
2727

2828
<div class="col-sm-10">
29-
<button id="enableBtn" class="btn btn-secondary">Enable</button>
30-
<button id="disableBtn" class="btn btn-secondary">Disable</button>
29+
<button id="enableBtn" type="button" class="btn btn-secondary">Enable</button>
30+
<button id="disableBtn" type="button" class="btn btn-secondary">Disable</button>
3131
</div>
3232
</div>
3333

0 commit comments

Comments
 (0)