Skip to content

Commit 77d743b

Browse files
committed
feat(Toolbox): add unique IDs to buttons for better accessibility and interaction
1 parent b9e27e8 commit 77d743b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/Toolbox.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Toolbox extends Component {
88
render() {
99
return (
1010
<div className="flex gap-6 px-10 py-2 bg-black-400 flex-wrap">
11-
<button className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
11+
<button id="newParticipantBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
1212
<svg
1313
id="addNewParticipantButton"
1414
width="100%"
@@ -42,7 +42,7 @@ class Toolbox extends Component {
4242
</g>
4343
</svg>
4444
</button>
45-
<button className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
45+
<button id="asyncMessageBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
4646
<svg
4747
id="addAsyncMessageButton"
4848
width="100%"
@@ -106,7 +106,7 @@ class Toolbox extends Component {
106106
</g>
107107
</svg>
108108
</button>
109-
<button className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
109+
<button id="syncMessageBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
110110
<svg
111111
id="addSyncMessageButton"
112112
width="100%"
@@ -159,7 +159,7 @@ class Toolbox extends Component {
159159
</g>
160160
</svg>
161161
</button>
162-
<button className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
162+
<button id="returnValueBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
163163
<svg
164164
id="addReturnValueButton"
165165
width="100%"
@@ -272,7 +272,7 @@ class Toolbox extends Component {
272272
</g>
273273
</svg>
274274
</button>
275-
<button className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
275+
<button id="selfMessageBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
276276
<svg
277277
id="addSelfMessageButton"
278278
width="100%"
@@ -334,7 +334,7 @@ class Toolbox extends Component {
334334
</g>
335335
</svg>
336336
</button>
337-
<button className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
337+
<button id="newInstanceBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
338338
<svg
339339
id="addNewInstanceButton"
340340
width="100%"

0 commit comments

Comments
 (0)