Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(ErrorForms): fix font-size (#3151)
  • Loading branch information
mainframev committed Oct 21, 2021
1 parent 8215c85 commit 323c480
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions packages/orbit-components/src/ErrorFormTooltip/Tooltip/index.jsx
Expand Up @@ -115,7 +115,12 @@ const StyledTooltipContent = styled.div`
& ${StyledText}, ${Item}, a {
color: ${theme.orbit.paletteWhite};
font-size: ${theme.orbit.fontSizeTextNormal};
font-weight: ${theme.orbit.fontWeightNormal};
&:hover,
&:focus {
color: ${theme.orbit.paletteWhite};
}
}
${media.largeMobile(css`
Expand All @@ -126,12 +131,6 @@ const StyledTooltipContent = styled.div`
font-weight: ${theme.orbit.fontWeightMedium};
font-size: ${theme.orbit.fontSizeTextSmall};
}
a:hover {
color: ${theme.orbit.paletteWhite};
}
a:focus {
color: ${theme.orbit.paletteWhite};
}
`)};
`}
`;
Expand Down
4 changes: 2 additions & 2 deletions packages/orbit-components/src/ErrorForms.stories.jsx
Expand Up @@ -154,7 +154,7 @@ Error.story = {

export const Help = (): React.Node => {
const label = text("Label", "Label");
const help = text("Error", "Something is not quite right");
const help = text("Help", "Is the spelling correct?");
const value = text("Value", "");
const placeholder = text("Placeholder", "Placeholder");
const prefix = text("Prefix", "$");
Expand All @@ -165,7 +165,7 @@ export const Help = (): React.Node => {
<Stack>
<InputField
size={size}
help={help}
help={<TextLink>{help}</TextLink>}
label={label}
value={value}
placeholder={placeholder}
Expand Down

0 comments on commit 323c480

Please sign in to comment.