Skip to content

Commit

Permalink
use Eui sizing tokens for logo size
Browse files Browse the repository at this point in the history
  • Loading branch information
gergoabraham committed Oct 4, 2022
1 parent 54fc2b6 commit aa93233
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ const CenteredEuiFlexItem = styled(EuiFlexItem)`
align-items: center;
`;

const LargeLogo = styled(EuiIcon)`
width: 128px;
height: 128px;
`;

/**
* A component to be displayed in multi step onboarding process.
*/
Expand All @@ -48,6 +43,17 @@ export const EndpointPolicyCreateMultiStepExtension = memo(() => {
</EuiText>
);

const logoSize = `calc(2 * ${size.xxxxl})`;
const securityLogo = (
<EuiIcon
type="logoSecurity"
css={css`
width: ${logoSize};
height: ${logoSize};
`}
/>
);

const features = (
<EuiFlexGroup alignItems="center" gutterSize="s" responsive={false}>
<EuiFlexItem grow={false}>
Expand Down Expand Up @@ -103,9 +109,7 @@ export const EndpointPolicyCreateMultiStepExtension = memo(() => {
margin-top: ${marginSize};
`}
>
<CenteredEuiFlexItem grow={false}>
<LargeLogo type="logoSecurity" />
</CenteredEuiFlexItem>
<CenteredEuiFlexItem grow={false}>{securityLogo}</CenteredEuiFlexItem>

<EuiFlexItem>
<div>{features}</div>
Expand Down

0 comments on commit aa93233

Please sign in to comment.