Skip to content

Commit bd11c0d

Browse files
authored
Fix trademark rounded corners in embed (#3874)
1 parent 3817289 commit bd11c0d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

packages/gitbook/src/components/Embeddable/EmbeddableRootLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export async function EmbeddableRootLayout({
5858
{children}
5959
{context.customization.trademark.enabled ? (
6060
<TrademarkLink
61-
className="rounded-none border-tint-solid/3 border-t bg-tint-solid/1 px-4 py-2.5 text-tint/8 ring-0"
61+
className="border-tint-solid/3 border-t bg-tint-solid/1 px-4 py-2.5 text-tint/8 ring-0"
6262
context={context}
6363
placement={SiteInsightsTrademarkPlacement.Embed}
6464
/>

packages/gitbook/src/components/TableOfContents/Trademark.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ export function Trademark(props: {
6262
className
6363
)}
6464
>
65-
<TrademarkLink {...rest} />
65+
<TrademarkLink
66+
className="circular-corners:rounded-2xl rounded-lg straight-corners:rounded-none"
67+
{...rest}
68+
/>
6669
</div>
6770
);
6871
}
@@ -102,10 +105,6 @@ export function TrademarkLink(props: {
102105
'sidebar-filled:px-3',
103106
'lg:sidebar-filled:page-no-toc:px-5',
104107

105-
'rounded-lg',
106-
'straight-corners:rounded-none',
107-
'circular-corners:rounded-2xl',
108-
109108
'hover:bg-tint',
110109
'hover:text-tint-strong',
111110

0 commit comments

Comments
 (0)