Skip to content

fix: override tooltip to Toggle cell alignment in tabular context only.#2938

Open
Prashant27-07 wants to merge 2 commits intoMoganLab:mainfrom
Prashant27-07:fix-toggle-numbering-tooltip
Open

fix: override tooltip to Toggle cell alignment in tabular context only.#2938
Prashant27-07 wants to merge 2 commits intoMoganLab:mainfrom
Prashant27-07:fix-toggle-numbering-tooltip

Conversation

@Prashant27-07
Copy link

the tooltip "Toggle numbering" was misleading - the button actually toggles cell alignment (tabular vs tabular*), not numbering. Changed the tooltip to "Toggle cell alignment" in generic-menu.scm and text-menu.scm.

@Prashant27-07
Copy link
Author

Fixes #2852

@JackYansongLi
Copy link
Contributor

You should only change the behavior in tabular-like environment. The current change is global so when it comes to the math mode, it becomes:

Screenshot 2026-03-05 at 16 00 42

@JackYansongLi
Copy link
Contributor

Also, documentation and PR number are required.

Prashant27-07 added a commit to Prashant27-07/mogan that referenced this pull request Mar 5, 2026
@Prashant27-07 Prashant27-07 force-pushed the fix-toggle-numbering-tooltip branch from 7c22ae7 to 4abd0e7 Compare March 5, 2026 16:23
Prashant27-07 added a commit to Prashant27-07/mogan that referenced this pull request Mar 5, 2026
@Prashant27-07 Prashant27-07 force-pushed the fix-toggle-numbering-tooltip branch from 4abd0e7 to 53d3326 Compare March 5, 2026 22:04
@Prashant27-07
Copy link
Author

Hi @JackYansongLi I have updated the fix. The tooltip change is now only applied in tabular context using table-markup-context? in table-menu.scm. The generic-menu.scm and text-menu.scm are reverted back to 'Toggle numbering'. Please review.

@Yuki-Nagori
Copy link
Contributor

@Prashant27-07 Please refer to the guidelines in https://github.com/MoganLab/mogan/blob/main/CONTRIBUTING.md, thanks.

@Prashant27-07 Prashant27-07 force-pushed the fix-toggle-numbering-tooltip branch from 53d3326 to eec4fa9 Compare March 6, 2026 20:08
@Prashant27-07
Copy link
Author

Updated the commit to [222_51] and added the developer documentation file devel/222_51.md as required by CONTRIBUTING.md. The fix now correctly overrides the tooltip only in tabular context using table-markup-context?.

@JackYansongLi
Copy link
Contributor

please also change the title of this PR.

@Prashant27-07 Prashant27-07 changed the title fix: change tooltip from Toggle numbering to Toggle cell alignment fix: override tooltip to Toggle cell alignment in tabular context only. Mar 7, 2026
@Prashant27-07
Copy link
Author

@JackYansongLi Done.

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.

3 participants