Skip to content

Commit

Permalink
fix: propsを渡す要素を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Qs-F committed Jun 10, 2024
1 parent e6f9333 commit abe5845
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/smarthr-ui/src/components/LineClamp/LineClamp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ export const LineClamp: FC<Props & ElementProps> = ({
const rootStyles = useMemo(() => root({ className }), [className])

const ActualLineClamp = () => (
<span className={rootStyles}>
<span {...props} className={lineClampStyles} ref={ref}>
{children}
</span>
<span {...props} className={rootStyles} ref={ref}>
<span className={lineClampStyles}>{children}</span>
{/* 切り取られていないテキストの高さを取得するための要素 */}
<span
aria-hidden
Expand Down

0 comments on commit abe5845

Please sign in to comment.