-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[App Search] DataPanel & LoadingOverlay component tweaks #94251
Conversation
<EuiFlexGroup gutterSize="s" alignItems="center" responsive={false}> | ||
{iconType && ( | ||
<EuiFlexItem> | ||
<EuiFlexItem grow={false}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
</EuiFlexItem> | ||
{action && <EuiFlexItem grow={false}>{action}</EuiFlexItem>} | ||
</EuiFlexGroup> | ||
<EuiSpacer /> | ||
{children} | ||
{isLoading && <LoadingOverlay />} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My name is Davey and I approve of this loading overlay. 😀
dadebcb
to
5494e76
Compare
- should have an opacity'd overlay to hide content underneath - specify z-index
- update CSS to contain LoadingOverlay - add isLoading prop
5494e76
to
7d61dd5
Compare
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. Not sure if Davey wanted to take a look at this before merging or not. I'm good either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Thanks y'all! 🎉 |
* DataPanel: fix icons showing unaligned & w/ too much flex space * LoadingOverlay: add new loading component w/ overlay - should have an opacity'd overlay to hide content underneath - specify z-index * DataPanel: add flag to display a LoadingOverlay - update CSS to contain LoadingOverlay - add isLoading prop
…4328) * DataPanel: fix icons showing unaligned & w/ too much flex space * LoadingOverlay: add new loading component w/ overlay - should have an opacity'd overlay to hide content underneath - specify z-index * DataPanel: add flag to display a LoadingOverlay - update CSS to contain LoadingOverlay - add isLoading prop Co-authored-by: Constance <[email protected]>
Summary
This PR is setup for upcoming Curation work/PRs.
isLoading
prop to show a LoadingOverlay componentScreenshots will be included in the comments below.
Checklist
Accessibility note
Just want to that the below items are potential accessibility point of weaknesses in the app:
Reasons:
aria-busy
is a sufficient indicator for nowTL;DR - this isn't a perfect or accessible implementation of a loading indicator and is mostly visual-focused - it's definitely a tech debt item to re-evaluate this at some pointer for better screen reader and keyboard compatibility, possibly via the
inert
property in the future.