Class: Shadcn::ContextMenu::SubContent::Component
- Inherits:
-
DropdownMenu::SubContent::Component
- Object
- ViewComponent::Base
- ApplicationViewComponent
- DropdownMenu::SubContent::Component
- Shadcn::ContextMenu::SubContent::Component
- Defined in:
- app/components/shadcn/context_menu/sub_content/component.rb
Overview
Its own class string rather than the dropdown's, and the reason is the
one thing parity_spec cannot see: the two differ only in which
--radix-* custom properties they read, and those are what popper.js
writes under the controller's prefix. Inheriting the dropdown's would
leave a context submenu reading variables nothing sets — and parity
would still pass, because it asks whether a token appears anywhere in
the family, not whether it appears on the right element.
Constant Summary
Constants inherited from ApplicationViewComponent
ApplicationViewComponent::CONTENTS_STYLE, ApplicationViewComponent::VOID_TAGS
Instance Attribute Summary
Attributes inherited from ApplicationViewComponent
Method Summary
Methods inherited from DropdownMenu::SubContent::Component
Methods inherited from ApplicationViewComponent
#call, #css_classes, default_tag, #element_attributes, #initialize, #merged_style, #render_element, #shadcn_t, slot_name, #style_variants, #tag_name
Constructor Details
This class inherits a constructor from Shadcn::ApplicationViewComponent