-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[A11y][TableListView] Refactor to use context to return focus #188774
Conversation
/ci |
⏳ Build in-progress, with failures
Failed CI StepsTest Failures
Historycc @rshen91 |
/ci |
@@ -43,7 +43,8 @@ const saveBtnWrapperCSS = css` | |||
width: 100%; | |||
`; | |||
|
|||
interface Props { | |||
interface Context { | |||
enabled: boolean; |
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.
I don't think we need to pass the enabled
and handle it on L61 as the consumer (the panel) does not render if tagging is not enabled.
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.
Good call - commit ed518a2 for changes
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @rshen91 |
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.
LGTM! Thanks for fixing this @rshen91!
/> | ||
<TagFilterContextProvider | ||
isPopoverOpen={isPopoverOpen} | ||
isInUse={isInUse} |
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.
@sebelga, if I am not mistaken, we can simplify further because isInUse was a workaround for the problem that should be solved with context
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.
Needs to be checked but it could probably be removed indeed 👍
Summary
Closes https://github.com/elastic/observability-dev/issues/3345
Refactoring the tags portion of the table list view to return focus after closing the tags popover