Skip to content

Connect font-size changes to undo and redo #59

Closed

Description

@mameen

Context

PR #57 adds selected-text font sizing, but font-size changes are not connected to the page undo/redo history.

Work

  • Route font-size changes through the page's undoable command/history path (including the CommandSpec action where applicable).
  • Ensure Undo restores the prior size and Redo reapplies it for the selected text.
  • Preserve expected behavior for HTML and CMGFM pages after save and reopen.

Acceptance criteria

  • A focused regression test proves font-size change → Undo restores the original formatting → Redo restores the new formatting.
  • UI/command tests cover the user's undo/redo action, not only a direct helper call.
  • Existing text and selection behavior remains intact.

Related: #57.

Activity

  1. Mathew-D commented on Nov 9, 2026

    @Mathew-D
    Collaborator

    This is done I believe we can close this

  2. DWAA1660 commented on Nov 13, 2026

    @DWAA1660
    Collaborator

    Already implemented in 5b5ad72 ("Implemented font-size undo and redo"); covered by font_size_undo_and_redo_preserve_page_content_in_both_formats and selected_container_font_size_is_undoable_and_leaves_other_boxes_alone in crates/ui-egui/tests/ui.rs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions