Skip to content

Commit 4a2d343

Browse files
committed
feat(heading): 돔 위치 원래대로 수정
1 parent 0d71b97 commit 4a2d343

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/features/shared/components/mdx/Headings.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ export const HeadingFactory = (): HeadingFactory => {
2323
const AnchorSpan = AnchorProps.children;
2424
const Anchor = jsx('a', {
2525
...AnchorProps,
26-
className: classNames(
27-
AnchorSpan.props.className,
28-
'opacity-0 group-hover:opacity-100 ease-in-out transition-opacity duration-300',
29-
'before:absolute before:w-[40px] before:left-[-25px] before:content-["⧉"] before:text-[#61768f] before:mr-2',
30-
),
26+
children: jsx('span', {
27+
...AnchorSpan.props,
28+
className: classNames(
29+
AnchorSpan.props.className,
30+
'opacity-0 group-hover:opacity-100 ease-in-out transition-opacity duration-300',
31+
'before:absolute before:w-[40px] before:left-[-25px] before:content-["⧉"] before:text-[#61768f] before:mr-2',
32+
),
33+
}),
3134
});
3235

3336
const children = Children.toArray(props.children);

0 commit comments

Comments
 (0)