fix: make mobile popover dialog styling nice (#3059)

* fix: make mobile popover dialog styling nice
Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
Nan Yu
2022-02-04 16:32:22 -08:00
committed by GitHub
parent 4cc7af7874
commit ae0644177b
2 changed files with 29 additions and 3 deletions

View File

@@ -132,6 +132,8 @@ export const Position = styled.div`
position: absolute;
z-index: ${(props) => props.theme.depths.menu};
// overrides make mobile-first coding style challenging
// so we explicitly define mobile breakpoint here
${breakpoint("mobile", "tablet")`
position: fixed !important;
transform: none !important;