-
Notifications
You must be signed in to change notification settings - Fork 8
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
Rich text editor | Reverting back the workaround for the "tabindex" value update in footer buttons #1550
Conversation
We are making this PR ready for review ahead of a buddy review, as it involves the removal of the workaround code. |
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.
It's questionable to me that we would revert a general fix for the sake of the mobile experience. My understanding is that mobile support has been deprioritized, so we should not bother fixing those kinds of issues. However, the workaround being reverted does not seem super important (and we're still tracking the issue), so I'm not strongly opposed to this change.
change/@ni-nimble-components-b0a59426-c9a2-444a-a9f7-1ccf79dd94b4.json
Outdated
Show resolved
Hide resolved
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.
revert looks fine deferring to rich text devs and nimble iphone users if it's the right direction
Pull Request
🤨 Rationale
We recognized that the workaround done in this PR #1503 creates an issue in iOS mobile browsers. In mobile/Tab iOS browsers, when the button is clicked, it does not automatically focus back on the editor, and the keypad closes.
Bug link: https://dev.azure.com/ni/DevCentral/_workitems/edit/2526025
With
pointer-events: none
toslot="start"
of toggle button:ios-focus-issue.mp4
Without
pointer-events: none
toslot="start"
of toggle button:ios-focus-fix.mp4
After aligning with the leads, as a quicker resolution, we thought that this bug would create more impact for the mobile users than the other
tabindex
issue.👩💻 Implementation
Reverting all the changes that were implemented here: #1503
🧪 Testing
Manually tested iOS devices(mobile and tab) in Safari and Chrome browsers.
1. Opened nimble.ni.dev on an iOS device and clicked the buttons, the editor loses the focus.
2. Opened the current storybook publish on an iOS device and clicked the buttons, the editor got the focus as expected. (As shared in the above recordings)
✅ Checklist