Skip to content

fix: preserve custom styling on context menu shortcuts - #115

Merged
LineIndent merged 1 commit into
LineIndent:mainfrom
elviskahoro:fix/context-menu-shortcut-styling
Oct 21, 2026
Merged

LineIndent merged 1 commit into
LineIndent:mainfrom
elviskahoro:fix/context-menu-shortcut-styling

Conversation

@elviskahoro

Copy link
Copy Markdown
Collaborator

ContextMenuShortcut.create unconditionally overwrote props["class_name"], so a caller-provided class_name was silently dropped and never reached the rendered component.

Uses cls.set_class_name(...) instead so custom classes merge with the defaults, consistent with the other menu components. Adds tests/test_context_menu.py covering the default, merged, and unstyled cases.

@LineIndent
LineIndent merged commit cae6190 into LineIndent:main Oct 21, 2026
1 check passed
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.

2 participants