Skip to content

Commit

Permalink
fix: flex style overriding hidden preference
Browse files Browse the repository at this point in the history
In the production environment _only_ this
box is incorrectly inheriting the display:flex
property which due to ordering of selectors
in the generated CSS are taking preference
over the media query defined display:none.

This is a guess as I haven't been able to recreate
the behaviour locally.
  • Loading branch information
thisislawatts committed Dec 17, 2021
1 parent ef8bbe3 commit c0e824a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Maps/Content/Controls/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class Controls extends React.Component<IProps, IState> {
</Link>
</Box>
</Flex>
<Flex width="95%" sx={{ display: ['flex', 'none', 'none'], mt: '5px' }}>
<Box width="95%" sx={{ display: ['flex', 'none', 'none'], mt: '5px' }}>
<Button
width="100%"
sx={{ display: 'block' }}
Expand All @@ -151,7 +151,7 @@ class Controls extends React.Component<IProps, IState> {
style={{ width: '18px', marginLeft: '5px' }}
/>
</Button>
</Flex>
</Box>
{showFiltersMobile && (
<Modal onDidDismiss={() => this.handleFilterMobileModal()}>
<Flex p={0} mx={-1} justifyContent="space-between">
Expand Down

0 comments on commit c0e824a

Please sign in to comment.