-
Notifications
You must be signed in to change notification settings - Fork 268
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
Fix Header keyboard navigation #13369
Conversation
1ff2c9a
to
b53a2f6
Compare
b53a2f6
to
2bd801d
Compare
shell/components/AppModal.vue
Outdated
@@ -107,7 +111,10 @@ export default defineComponent({ | |||
width: this.modalWidth, | |||
...this.stylesPropToObj, | |||
}; | |||
} | |||
}, | |||
isCodeMirrorFocused() { |
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 think that we will be able to remove the need for AppModal
to know about the code mirror if we solve the issue with event listeners on the document.
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.
Since the onReady
event was already being bubbled up with the correct reference of the code mirror instance, I've updated Import
to pass it to Header
then we can use it in AppModal
. With that we could remove all selectors and weird logic. Check this commit with all the changes
2bd801d
to
cb8266f
Compare
f1fe42a
to
4234ccb
Compare
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.
This is looking good overall, there's a few comments on the Container Shell that I think we should address before moving forward.
@rak-phillip PR updated |
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
Summary
Fixes #12778 #8113
Occurred changes and/or fixed issues
Header
componentImport YAML
modal (updatedCodeMirror
component to handle blur withescape
key)Kubectl Shell
area (updatedContainerShell
component to handle blur withescape
key)Describe Resource
area (slide in panel with resource description/explanation)Technical notes summary
Areas or cases that should be tested
Areas which could experience regressions
Screenshot/Video
Screen.Recording.2025-02-11.at.12.20.33.mov
Checklist