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

[Editor] Tweak the save flow in the alt-text dialog #17005

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

calixteman
Copy link
Contributor

When the user edit an existing alt-text and remove it, we want to be able to save this state and consequently remove the done state from the alt-text button.
Remove the button from its parent when the editor is removed: it should help to save few Kb of memory.

@Snuffleupagus
Copy link
Collaborator

/botio-linux preview

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/aabd330c911da52/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/aabd330c911da52/output.txt

Total script time: 1.47 mins

Published

@Snuffleupagus
Copy link
Collaborator

Snuffleupagus commented Sep 22, 2023

It doesn't seem that the tooltip is being restored correctly now:

  • Open the preview.
  • Add a Stamp-editor.
  • Add an altText, e.g. "hello world".
  • Mouse-over the altText-button to check that the tooltip is shown.
  • Press the Delete key to remove the editor.
  • Press Ctrl+Z to restore the editor.
  • Mouse-over the altText-button, and find that the tooltip is now "gone".

@marco-c marco-c changed the title [Editor] Tweak the the save flow in the alt-text dialog [Editor] Tweak the save flow in the alt-text dialog Sep 22, 2023
@calixteman calixteman force-pushed the alt_text_tweak_save_flow branch 2 times, most recently from ca95bf9 to 3b58a69 Compare September 22, 2023 10:01
When the user edit an existing alt-text and remove it, we want to be able
to save this state and consequently remove the done state from the
alt-text button.
Remove the button from its parent when the editor is removed: it should
help to save few Kb of memory.
@calixteman
Copy link
Contributor Author

/botio-linux preview

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_preview from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/8b2a18c23ada464/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/8b2a18c23ada464/output.txt

Total script time: 1.52 mins

Published

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me, thank you!

@calixteman calixteman merged commit f66613c into mozilla:master Sep 22, 2023
3 checks passed
@calixteman calixteman deleted the alt_text_tweak_save_flow branch September 22, 2023 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants