fix: restore icon variant for link since inline-flex makes its children inline but not the box itself
This commit is contained in:
@@ -87,7 +87,7 @@ export const renderOptions: RenderOptions = {
|
||||
return (
|
||||
<Link
|
||||
key={node.uid}
|
||||
className={cx(styles.link, className)}
|
||||
className={className}
|
||||
{...props}
|
||||
href={node.attrs.url}
|
||||
target={node.attrs.target ?? "_blank"}
|
||||
@@ -348,7 +348,7 @@ export const renderOptions: RenderOptions = {
|
||||
}
|
||||
|
||||
return (
|
||||
<span className={cx(styles.span, propsClassName)} {...props}>
|
||||
<span className={propsClassName} {...props}>
|
||||
{next(node.children, embeds, fullRenderOptions)}
|
||||
</span>
|
||||
)
|
||||
@@ -416,10 +416,11 @@ export const renderOptions: RenderOptions = {
|
||||
return (
|
||||
<Link
|
||||
key={node.uid}
|
||||
className={cx(styles.link, className)}
|
||||
className={className}
|
||||
href={node.attrs.href}
|
||||
textDecoration="underline"
|
||||
target="_blank"
|
||||
variant="icon"
|
||||
{...props}
|
||||
>
|
||||
{next(
|
||||
@@ -466,7 +467,7 @@ export const renderOptions: RenderOptions = {
|
||||
return (
|
||||
<Link
|
||||
key={node.uid}
|
||||
className={cx(styles.link, className)}
|
||||
className={className}
|
||||
{...props}
|
||||
href={entry.node.url}
|
||||
textDecoration="underline"
|
||||
@@ -818,7 +819,7 @@ export const renderOptions: RenderOptions = {
|
||||
}
|
||||
return (
|
||||
<Typography key={id} variant="Body/Paragraph/mdRegular">
|
||||
<span className={cx(styles.span, propsClassName)} {...props}>
|
||||
<span className={propsClassName} {...props}>
|
||||
{children}
|
||||
</span>
|
||||
</Typography>
|
||||
|
||||
Reference in New Issue
Block a user