Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix: infobox colors (#47)
Browse files Browse the repository at this point in the history
Co-authored-by: basel.issmail <basel.issmail@gmail.com>
Co-authored-by: HideBa <baba.papa1120.ba@gmail.com>
Co-authored-by: HideBa <49897538+HideBa@users.noreply.github.com>
  • Loading branch information
4 people committed Jul 16, 2021
1 parent ac9419c commit 2a6a362
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Expand Up @@ -95,7 +95,7 @@ const TextBlock: BlockComponent<Property, PluginProperty> = ({
</Template>
) : (
<>
{property?.default?.title && <Title>{property.default.title}</Title>}
{property?.default?.title && <Title styles={typography}>{property.default.title}</Title>}
{isEditing ? (
<InputField
ref={ref}
Expand Down Expand Up @@ -146,7 +146,10 @@ const Wrapper = styled.div<{
border-radius: 6px;
`;

const Title = styled.div`
const Title = styled.div<{ styles?: Typography }>`
${({ styles }) => typographyStyles(styles)}
padding: 5px;
min-height: 15px;
font-size: 12px;
`;

Expand Down
Expand Up @@ -100,7 +100,7 @@ const InfoBox: React.FC<Props> = ({
direction="column"
onClick={handleOpen}>
{isSmallWindow && !noContent && <StyledIcon icon="arrowUp" size={24} open={open} />}
<Text size="m" weight="bold">
<Text size="m" weight="bold" color="inherit">
<TitleText>{title || " "}</TitleText>
</Text>
{!isSmallWindow && <StyledIcon icon="arrowDown" size={24} open={open} />}
Expand Down

0 comments on commit 2a6a362

Please sign in to comment.