Skip to content

Commit

Permalink
make sure progress bar is visible (#142699) (#142822)
Browse files Browse the repository at this point in the history
(cherry picked from commit bf6a55d)

Co-authored-by: Joe Reuter <[email protected]>
  • Loading branch information
kibanamachine and flash1293 authored Oct 6, 2022
1 parent 237173d commit 565ddb4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ export function ReactExpressionRenderer({
return (
<div {...dataAttrs} className={classes}>
{isEmpty && <EuiLoadingChart mono size="l" />}
{isLoading && <EuiProgress size="xs" color="accent" position="absolute" />}
{isLoading && (
<EuiProgress size="xs" color="accent" position="absolute" style={{ zIndex: 1 }} />
)}
{!isLoading && error && renderError?.(error.message, error)}
<div className="expExpressionRenderer__expression" style={expressionStyles} ref={nodeRef} />
</div>
Expand Down

0 comments on commit 565ddb4

Please sign in to comment.