Skip to content

Commit 7f28a88

Browse files
authored
Use transparent bg for secondary button (#2545)
1 parent 07ea45b commit 7f28a88

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/gitbook/e2e/pages.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,13 +466,11 @@ const testCases: TestsCase[] = [
466466
{
467467
title: 'Secondary button',
468468
to: { kind: 'url', url: 'https://www.gitbook.com' },
469-
// @ts-ignore Remove once we upgrade to the latest version of the API
470469
style: 'button-secondary',
471470
},
472471
{
473472
title: 'Primary button',
474473
to: { kind: 'url', url: 'https://www.gitbook.com' },
475-
// @ts-ignore Remove once we upgrade to the latest version of the API
476474
style: 'button-primary',
477475
},
478476
],

packages/gitbook/src/components/Header/HeaderLink.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ export async function HeaderLink(props: {
6666
)
6767
: null,
6868
'button-secondary': tcls(
69+
'bg:transparent hover:bg-transparent',
6970
'dark:bg-transparent dark:hover:bg-transparent',
70-
'ring-header-link-500 hover:ring-header-link-300 dark:ring-header-link-500 dark:hover:ring-header-link-300 text-header-link-500 dark:text-header-link-500',
71+
'ring-header-link-500 hover:ring-header-link-300 text-header-link-500',
72+
'dark:ring-header-link-500 dark:hover:ring-header-link-300 dark:text-header-link-500',
7173
),
7274
}[linkStyle],
7375
)}

0 commit comments

Comments
 (0)