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

Commit

Permalink
Fix hex color input. (#69)
Browse files Browse the repository at this point in the history
Fix infobox title color not changing.

Co-authored-by: KaWaite <flippindaisy@gmail.com>
  • Loading branch information
KaWaite and KaWaite committed Aug 26, 2021
1 parent f9accc9 commit f981f91
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,6 @@ const ColorField: React.FC<Props> = ({ value, onChange, overridden, linked }) =>
}
}, [value]);

useEffect(() => {
if (colorState == null) return;
const color = getHexString(rgba);
if (!color) return;
if (color != colorState) {
setColor(color);
}
}, [colorState, rgba]);

const { styles, attributes } = usePopper(wrapperRef.current, pickerRef.current, {
placement: "bottom-start",
modifiers: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,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" customColor>
<TitleText>{title || " "}</TitleText>
</Text>
{!isSmallWindow && <StyledIcon icon="arrowDown" size={24} open={open} />}
Expand Down

0 comments on commit f981f91

Please sign in to comment.