Skip to content

Commit

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

* Remove padding override
* Move spacer to before action
  • Loading branch information
orhantoy authored Oct 19, 2021
1 parent 20b11c9 commit d78fa6c
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 d78fa6c

Please sign in to comment.