Skip to content

[Feat]: sp-action-menu should support customizing the internal sp-menu #1831

@charlessuh

Description

@charlessuh

Code of conduct

  • I agree to follow this project's code of conduct.

Impacted component(s)

sp-action-menu

Description of the requested feature

When using sp-action-menu, there is no way to customize the internal sp-menu that is opened. Potential use cases could be specifying a max-width, or overriding a supported CSS variable.

For example, perhaps sp-action-menu could support a menu slot:

<sp-action-menu size="m">
    <span slot="label">More Actions</span>
    <sp-menu slot="menu" style="max-width: 400px; --spectrum-listitem-m-height: 50px;">
        <sp-menu-item />
    </sp-menu>
</sp-action-menu>

Mockups or screenshots

No response

Implementation notes or ideas

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.0.0Issues that should be addressed for a 1.0 release!Component: Action menuFeatureNew feature or requestNeeds discussionProposed UX or spec changes requiring discussion w/ internal team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions