-
Notifications
You must be signed in to change notification settings - Fork 4.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
Buttons that have visible text should not use tooltips - New occurrences #55815
Comments
The 'Save/Saved' button has its own specific issues previously reported on #43952 and #44735 I will keep it out for now. So far, we are forcinc the tooltip of this button to always render, to avoid a focus loss. This is very specific to this button, because rendering the tooltip conditionally based on the button state would trigger a full re-rendering of the DOM element and thus trigger a focus loss. It is still possible to reproduce the potential focus loss by removing this showTooltip prop and then saving a post edit by pressing the Save button with the keyboard. Looks like the refactoring of the Tooltip with using ariakit didn't adress this issue. @ciampo @talldan could you please confirm when you have a chance? |
I'm not sure we can find a way for the
I gave this a quick look and the issue doesn't seem related to the |
@ciampo thanks for your feedback. I'm not sure I understand what the action plan is here, your comment seems truncated at the end :) |
Woops, I must have completed the sentences only in my head 🙈 I updated my original comment, thank you for spotting it! |
Description
Previously: #42676 / #42815
This was already fixed for the buttons in the top bar in #42815 but it appears it's something that many contributors miss. I spotted a few new occurrences of this issue in newsly / refactored buttons.
It would be great to consider to automate this behavior in the components so that we don't have to worry about it again. Cc @ciampo
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: