Skip to content
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

Merged
merged 6 commits into from
Sep 20, 2023

Conversation

vivinkrishna-ni
Copy link
Contributor

@vivinkrishna-ni vivinkrishna-ni commented Sep 19, 2023

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 to slot="start" of toggle button:

ios-focus-issue.mp4

Without pointer-events: none to slot="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

  • I have updated the project documentation to reflect my changes or determined no changes are needed.

@vivinkrishna-ni
Copy link
Contributor Author

We are making this PR ready for review ahead of a buddy review, as it involves the removal of the workaround code.

@vivinkrishna-ni vivinkrishna-ni marked this pull request as ready for review September 19, 2023 15:46
Copy link
Contributor

@m-akinc m-akinc left a 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.

Copy link
Member

@rajsite rajsite left a 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

@vivinkrishna-ni vivinkrishna-ni enabled auto-merge (squash) September 20, 2023 02:18
@vivinkrishna-ni vivinkrishna-ni merged commit 36b9611 into main Sep 20, 2023
@vivinkrishna-ni vivinkrishna-ni deleted the users/vivin/fix-button-click-focus branch September 20, 2023 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants