Skip to content

Menu-Button, Listbox-button: clean up the configuration #146

@saiponnada

Description

@saiponnada

I think one thing we might need to do is make it clearer that some of these options are only valid for the single select (i.e. role=menuitemradio) variant. Maybe we could move those into a sub mapping? Or any other ideas?

const defaultOptions = {
customElementMode: false,
expandedClass: "menu-button--expanded",
menuSelector: ".menu-button__menu",
buttonTextSelector: .btn__text,
singleSelect: {
buttonValueType: "text", // ["text", "icon", "both"],
menuItemIconSelector: ".icon",
menuItemButtonAriaLabelSelector: null,
}
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions