Skip to content

Commit ea857f2

Browse files
authored
fix: use semantic element
especially for accessibility reasons
1 parent 20af25e commit ea857f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/mdx/src/mini-editor/editor-frame.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function TabsContainer({
167167
)}
168168
{showFrameButtons ? <FrameButtons /> : <div />}
169169
{tabs.map(({ title, active, style }) => (
170-
<div
170+
<button
171171
key={title}
172172
title={title}
173173
data-ch-tab={panel}
@@ -198,9 +198,10 @@ function TabsContainer({
198198
),
199199
}}
200200
onClick={onTabClick && (() => onTabClick(title))}
201+
type="button"
201202
>
202203
<TabTitle title={title} />
203-
</div>
204+
</button>
204205
))}
205206
<div style={{ flex: 1, minWidth: "0.8em" }} />
206207
{button}

0 commit comments

Comments
 (0)