-
Notifications
You must be signed in to change notification settings - Fork 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
Fix MenuItem hover state when external links are followed #22702
Conversation
@aimane-chnaif Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
4c17ac2
to
ef8bdf8
Compare
@aimane-chnaif I'll be finishing the PR Author Checklist tomorrow, as it's getting late here, but I think the PR is ready for the first round of review |
@aimane-chnaif Checklist complete, waiting for your review 🙂 |
@cubuspl42 please use this approach, not introducing new state:
|
@aimane-chnaif You're right, it's cleaner this way! Done. |
@aimane-chnaif Ping 🙂 |
BUG: Screen.Recording.2023-07-13.at.4.29.33.PM.movSwitch tab using keyboard short cut (Ctrl+Tab, Ctrl+Shift+Tab) |
@aimane-chnaif Well, this is a corner case that's difficult to handle correctly. What level of perfection are we aiming at? If the cursor is actually not moving after switching back to the original tab, I don't think it's possible to handle this using the DOM API. We could try to get the mouse position from the first What do you think? |
As you see my video, item is not highlighted even on mouse move |
@aimane-chnaif I know, I'm aware. I'm asking about what we're aiming at. From my perspective it's about cost/effort ratio and what's possible. Did you encounter the mentioned case in organic usage, or were you trying to produce it? I'm wondering if this isn't a corner case that will be encountered very, very rarely. |
yes, I agree it's extreme edge case. @jasperhuangg what do you think? |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroid |
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.
@jasperhuangg all yours about this concern
@jasperhuangg Friendly ping 🙂 |
@aimane-chnaif I think it's fine if we don't address that, that seems like an extreme corner case, and this issue itself honestly is already kind of an extreme corner case. @cubuspl42 conflicts |
@jasperhuangg Solved |
@jasperhuangg looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/jasperhuangg in version: 1.3.42-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.42-26 🚀
|
Details
Hoverable
to unhover when the document visibility becomes 'hidden'Hoverable
inMenuItem
for managing the hover stateFixed Issues
$ #18675
PROPOSAL: #18675 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
macos-chrome-follow-external-link-1.mp4
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android