Skip to content

Add the option to include an icon in the menu item button #217

@swashbuck

Description

@swashbuck

Subject of the enhancement

It would be useful to have the config option to add an icon to the view button. Currently, this must be done with custom CSS work, and we can't specify that it should be hidden from screen readers.

This could be named something like _iconClass or _linkIconClass to align better with the linkText property name.

{_iconClass &&
<span className="menu-item__button-icon boxmenu-item__button-icon">
  <span className={classes([
    'icon',
    _iconClass
  ])} />
</span>
}

Screenshots

Image

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions