Skip to content

Commit

Permalink
[Logs UI] Fix font size references after EUI upstream change (#33411)
Browse files Browse the repository at this point in the history
This fixes the `small` font scale of the log viewer to correctly reference the EUI font size again. Before this fix, the `small` font scale was rendered larger than `medium`. Similarly, the tick labels of the log minimap were being rendered too large.

Both resulted from a breaking change of the exported variable names in elastic/eui#1590.

fixes #32759
  • Loading branch information
weltenwort authored Mar 18, 2019
1 parent 5707690 commit 04f816b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const TimeRuler: React.SFC<TimeRulerProps> = ({ end, height, start, tickC
TimeRuler.displayName = 'TimeRuler';

const TimeRulerTickLabel = styled.text`
font-size: ${props => props.theme.eui.euiFontSizeXs};
font-size: ${props => props.theme.eui.euiFontSizeXS};
line-height: ${props => props.theme.eui.euiLineHeight};
fill: ${props => props.theme.eui.textColors.subdued};
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const LogTextStreamItemField = styled.div.attrs<{
switchProp('scale', {
large: props.theme.eui.euiFontSizeM,
medium: props.theme.eui.euiFontSizeS,
small: props.theme.eui.euiFontSizeXs,
small: props.theme.eui.euiFontSizeXS,
[switchProp.default]: props.theme.eui.euiFontSize,
})};
line-height: ${props => props.theme.eui.euiLineHeight};
Expand Down

0 comments on commit 04f816b

Please sign in to comment.