Skip to content

Commit

Permalink
[ObsUx][VisualRefresh] Fix styled in logs shared component (elastic#2…
Browse files Browse the repository at this point in the history
…07237)

Closes elastic#207174

#### Summary

Fixed the error due to the use of the kibana theme insteaf of the
EuiTheme in logs shared componets used in APM
  • Loading branch information
MiriamAparicio authored and viduni94 committed Jan 23, 2025
1 parent aac16c8 commit 2b2ae93
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { FormattedMessage, FormattedTime, FormattedRelative } from '@kbn/i18n-re
import * as React from 'react';
import { Unit } from '@kbn/datemath';

import { euiStyled } from '@kbn/kibana-react-plugin/common';
import styled from '@emotion/styled';
import { LogTextSeparator } from './log_text_separator';
import { extendDatemath } from '../../../utils/datemath';

Expand Down Expand Up @@ -98,16 +98,16 @@ export class LogTextStreamLoadingItemView extends React.PureComponent<
}
}

const LoadingItemViewExtra = euiStyled(EuiFlexGroup)`
const LoadingItemViewExtra = styled(EuiFlexGroup)`
height: 40px;
`;

const ProgressEntryWrapper = euiStyled.div<{ position: Position }>`
padding-left: ${(props) => props.theme.eui.euiSizeS};
const ProgressEntryWrapper = styled.div<{ position: Position }>`
padding-left: ${(props) => props.theme.euiTheme.size.s};
padding-top: ${(props) =>
props.position === 'start' ? props.theme.eui.euiSizeL : props.theme.eui.euiSizeM};
props.position === 'start' ? props.theme.euiTheme.size.l : props.theme.euiTheme.size.m};
padding-bottom: ${(props) =>
props.position === 'end' ? props.theme.eui.euiSizeL : props.theme.eui.euiSizeM};
props.position === 'end' ? props.theme.euiTheme.size.l : props.theme.euiTheme.size.m};
`;

type ProgressMessageProps = Pick<
Expand Down

0 comments on commit 2b2ae93

Please sign in to comment.