Skip to content

Commit

Permalink
chore: FieldsetのVisuallyHidden legend の内容をテキストのみにする
Browse files Browse the repository at this point in the history
  • Loading branch information
AtsushiM committed Jan 8, 2025
1 parent 03437db commit ccd83a8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import React, {
useRef,
} from 'react'
import { useId } from 'react'
import innerText from 'react-innertext'
import { tv } from 'tailwind-variants'

import { FaCircleExclamationIcon } from '../Icon'
Expand Down Expand Up @@ -337,7 +338,7 @@ const TitleCluster = React.memo<
<>
{isRoleGroup && (
<VisuallyHiddenText id={managedLabelId} as="legend">
{body}
{innerText(body)}
</VisuallyHiddenText>
)}
<Cluster
Expand Down

0 comments on commit ccd83a8

Please sign in to comment.