Skip to content

Commit 09f0237

Browse files
committed
Apply role="button" to the hidden text preview element for accessibility compliance
1 parent 5e765e8 commit 09f0237

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • packages/ui/src/components/editor/panel/ResponsePreview/components

‎packages/ui/src/components/editor/panel/ResponsePreview/components/TextItem.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export const TextItem: FC<Props> = (props) => {
3030
className={styles.hidden}
3131
onClick={() => ref.current && props.on_toggle(ref.current)}
3232
title={props.content}
33+
role="button"
3334
>
3435
<div className={styles.hidden__line} />
3536
<span className={styles.hidden__tokens}>

0 commit comments

Comments
 (0)