Fix transparencies in non-backdrop-blur browsers

This commit is contained in:
Andrew Prifer 2022-06-13 15:25:27 +02:00 committed by Andrew Prifer
parent 4d4d970278
commit c303748ca9
4 changed files with 16 additions and 0 deletions

View file

@ -44,6 +44,10 @@ const Container = styled.div<{pin: boolean}>`
&:hover {
display: block;
}
@supports not (backdrop-filter: blur()) {
background: rgba(40, 43, 47, 0.95);
}
`
const Title = styled.div`

View file

@ -71,6 +71,10 @@ const Header = styled(BaseHeader)`
z-index: 5;
${pointerEventsAutoInNormalMode};
}
@supports not (backdrop-filter: blur()) {
background: rgba(40, 43, 47, 0.95);
}
`
export const outlineItemFont = css`

View file

@ -36,6 +36,10 @@ const Container = styled.button<{pinned?: boolean}>`
svg {
display: block;
}
@supports not (backdrop-filter: blur()) {
background: rgba(40, 43, 47, 0.95);
}
`
interface PinButtonProps extends ComponentPropsWithRef<'button'> {

View file

@ -60,6 +60,10 @@ export const Container = styled.button`
border-top-right-radius: 2px;
}
}
@supports not (backdrop-filter: blur()) {
background: rgba(40, 43, 47, 0.95);
}
`
const ToolbarIconButton: typeof Container = React.forwardRef(