Skip to content

Commit 7b3c86f

Browse files
Replace floating menu icons with text (canada-ca#2376)
* Replace floating menu icons with text Icons don't convey enough meaning to users. Users would have to guess till they end up on the page they want. * remove unused import
1 parent 146970e commit 7b3c86f

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

frontend/src/FloatingMenu.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@ import {
1717
Image,
1818
useToast,
1919
Heading,
20-
Icon,
2120
} from '@chakra-ui/core'
2221
import { TrackerButton } from './TrackerButton'
2322
import { Trans, t } from '@lingui/macro'
2423
import wordmark from './images/canada-wordmark.svg'
25-
import reportIcon from './images/report-icon.svg'
26-
import buildingIcon from './images/building-icon.svg'
2724
import { useLingui } from '@lingui/react'
2825
import { useUserState } from './UserState'
2926

@@ -51,10 +48,12 @@ export const FloatingMenu = () => {
5148
p="4px"
5249
display={{ base: 'static', md: 'none' }}
5350
>
54-
<Stack isInline width="100%" rounded="md" spacing={0}>
51+
<Stack isInline width="100%" rounded="md" spacing={0}
52+
fontSize={{base:'60%', sm:'100%'}}
53+
>
5554
<Link as={RouteLink} to="/organizations" flex="1 1 0">
5655
<TrackerButton variant="primary" rounded={0} w="100%" h="100%">
57-
<Image src={buildingIcon} size="16px" />
56+
<Trans>Organizations</Trans>
5857
</TrackerButton>
5958
</Link>
6059
<Divider
@@ -65,7 +64,7 @@ export const FloatingMenu = () => {
6564
/>
6665
<Link as={RouteLink} to="/domains" flex="1 1 0">
6766
<TrackerButton variant="primary" rounded={0} w="100%" h="100%">
68-
<Icon name="https" height="16px" width="100%" />
67+
<Trans>Domains</Trans>
6968
</TrackerButton>
7069
</Link>
7170
<Divider
@@ -76,7 +75,7 @@ export const FloatingMenu = () => {
7675
/>
7776
<Link as={RouteLink} to="/dmarc-summaries" flex="1 1 0">
7877
<TrackerButton variant="primary" rounded={0} w="100%" h="100%">
79-
<Image src={reportIcon} size="16px" />
78+
<Trans>DMARC Report</Trans>
8079
</TrackerButton>
8180
</Link>
8281
<Divider

0 commit comments

Comments
 (0)