Skip to content

Commit

Permalink
[App Search, Crawler] Fix validation step panel padding/whitespace (e…
Browse files Browse the repository at this point in the history
…lastic#115542)

* Remove padding override
* Move spacer to before action
  • Loading branch information
orhantoy authored and kibanamachine committed Oct 19, 2021
1 parent 2d9b7d2 commit 7358b6f
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,9 @@ export const ValidationStepPanel: React.FC<ValidationStepPanelProps> = ({
action,
}) => {
const showErrorMessage = step.state === 'invalid' || step.state === 'warning';
const styleOverride = showErrorMessage ? { paddingBottom: 0 } : {};

return (
<EuiPanel
hasShadow={false}
color={domainValidationStateToPanelColor(step.state)}
style={styleOverride}
>
<EuiPanel hasShadow={false} color={domainValidationStateToPanelColor(step.state)}>
<EuiFlexGroup gutterSize="s" alignItems="center">
<EuiFlexItem grow={false}>
<ValidationStateIcon state={step.state} />
Expand All @@ -59,8 +54,8 @@ export const ValidationStepPanel: React.FC<ValidationStepPanelProps> = ({
</EuiMarkdownFormat>
{action && (
<>
<EuiSpacer size="s" />
{action}
<EuiSpacer />
</>
)}
</>
Expand Down

0 comments on commit 7358b6f

Please sign in to comment.