Skip to content

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

Open
elviskahoro wants to merge 1 commit into
LineIndent:mainfrom
elviskahoro:fix/context-menu-shortcut-styling
Open

elviskahoro wants to merge 1 commit into
LineIndent:mainfrom
elviskahoro:fix/context-menu-shortcut-styling

Conversation

@elviskahoro

Copy link
Copy Markdown
Contributor

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.

This branch has not been deployed

No deployments
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.

1 participant