mirror of
https://github.com/jeffvli/feishin.git
synced 2026-08-10 14:23:18 +02:00
Update base components
This commit is contained in:
@@ -2,20 +2,26 @@ import styled from '@emotion/styled';
|
||||
import { Tooltip as MantineTooltip, TooltipProps } from '@mantine/core';
|
||||
|
||||
const StyledTooltip = styled(MantineTooltip)`
|
||||
& .mantine-Tooltip-arrow {
|
||||
background: var(--tooltip-bg);
|
||||
}
|
||||
|
||||
& .mantine-Tooltip-tooltip {
|
||||
margin: 20px;
|
||||
color: var(--tooltip-text-color);
|
||||
background: var(--tooltip-bg);
|
||||
}
|
||||
`;
|
||||
|
||||
export const Tooltip = ({ children, ...rest }: TooltipProps) => {
|
||||
return (
|
||||
<StyledTooltip pl={10} pr={10} py={5} radius="xs" {...rest}>
|
||||
<StyledTooltip
|
||||
pl={10}
|
||||
pr={10}
|
||||
py={5}
|
||||
radius="xs"
|
||||
styles={{
|
||||
tooltip: {
|
||||
background: 'var(--tooltip-bg)',
|
||||
color: 'var(--tooltip-fg)',
|
||||
},
|
||||
}}
|
||||
{...rest}
|
||||
>
|
||||
{children}
|
||||
</StyledTooltip>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user