-
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
Try: Fix missing save label. #34948
Try: Fix missing save label. #34948
Conversation
Size Change: -2 B (0%) Total Size: 1.06 MB
ℹ️ View Unchanged
|
Hi, @jasmussen I think the snapshot needs an update to fix JS unit tests. |
Thank you! Done. |
But if the draft is already saved and the text changed to Saved, like in the image above, then having a tooltip that says Save Draft is not correct? Because until there are more changes made, there is no additional draft to save? |
Agreed. The tooltip should probably not be possible to trigger from a disabled button. But this appears to be the case already in trunk — perhaps worth opening a separate issue for? |
The tooltip is displaying as in the PR description, |
You're right (and thank you for the review), it really kind of is weird and a better solution really would be to just not show a tooltip at all. 🤔 @ellatrix I think you worked on this recently, was there some logic to the tooltip in the disabled state that I'm missing? |
@jasmussen Not that I know. Maybe we can try to use the |
Cool, would you mind if I land this one as is? We can always circle back. |
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.
Of course, this looks good to me!
Description
The save state tooltip is missing a label:
This PR adds it back:
The gray background in that resting state is fixes separately in #34947.
Note that the ternery logic I removed here appears unneeded. The label is visually hidden on mobile, even without the logic.
Checklist:
*.native.js
files for terms that need renaming or removal).