Skip to content

Commit e557e49

Browse files
committed
Revert "PLU-311: [GSIB-2] reduce font size on gsib browser (#780)"
This reverts commit 2d069ad.
1 parent adf2629 commit e557e49

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

packages/frontend/src/components/ThemeProvider/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
} from '@mui/material/styles'
77
import { ThemeProvider as ChakraThemeProvider } from '@opengovsg/design-system-react'
88

9-
import { useDefaultZoom } from '@/hooks/useGovtBrowser'
109
import materialTheme from '@/styles/theme'
1110

1211
import { theme as chakraTheme } from '../../theme'
@@ -20,7 +19,6 @@ const ThemeProvider = ({
2019
}: ThemeProviderProps): React.ReactElement => {
2120
// This is a workaround to fix the issue of toasts appearing behind modal overlays
2221
const ref = useRef<HTMLDivElement>(null)
23-
useDefaultZoom()
2422
return (
2523
<ChakraThemeProvider
2624
theme={chakraTheme}

packages/frontend/src/hooks/useGovtBrowser.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* We check for existence of "menlo-view.menlosecurity.com" in window.name to determine if we should prepend the proxy url
77
*/
88

9-
import { useCallback, useEffect } from 'react'
9+
import { useCallback } from 'react'
1010

1111
const isGovtBrowser = window.name?.includes('menlo-view.menlosecurity.com')
1212

@@ -21,14 +21,4 @@ const useProxyUrl = () => {
2121
return { createProxiedUrl }
2222
}
2323

24-
const useDefaultZoom = () => {
25-
useEffect(() => {
26-
if (!isGovtBrowser) {
27-
return
28-
}
29-
// Set html font size to 14px
30-
document.documentElement.style.fontSize = '14px'
31-
}, [])
32-
}
33-
34-
export { useDefaultZoom, useProxyUrl }
24+
export { useProxyUrl }

0 commit comments

Comments
 (0)