Skip to content

Commit

Permalink
fix: disable ledger for firefox, closes #5287
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Jun 28, 2024
1 parent 65131b0 commit 4f77959
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/ui/pages/welcome.layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export function WelcomeLayout({
}: WelcomeLayoutProps): React.JSX.Element {
// On this page 'theme' is used to set specific colours and bypass automatic theming
const { theme } = useThemeSwitcher();
const isFirefox = navigator.userAgent.toLowerCase().includes('firefox');
// hardcoded specific instances of colour variables needed to bypass theme
const inkBgSecondary = '#F5F1ED';
const inkTextPrimary = '#12100F';
Expand Down Expand Up @@ -113,6 +114,7 @@ export function WelcomeLayout({
onClick={onSelectConnectLedger}
css={secondaryActionButton}
fullWidth
disabled={isFirefox}
>
Use Ledger
</Button>
Expand Down

0 comments on commit 4f77959

Please sign in to comment.