Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293458

Decide strategy to customize or provide 1st level menu items' icons

$
0
0

Problem/Motivation

The new navigation provides a new feature by adding icons to first level menu items. So far this is implemented by CSS with a background in the item, so if a contrib or a site-builder wants to add a new first level item and add an icon to it they need to write some CSS.

To note that we're also implementing a solution to use initials if no icon is provided in #3424744: If no icon for a top-level item is provided, use the first two letters.

Proposed resolution

It would be great to find a way that makes it easy to create and personalize new menu items with icons, and provide an easy way for contrib modules and distributions to provide their own configuration.

So in here we'd need to provide and discuss options that would make extensibility and maintenance easy. Some options could be:

  • CSS background (what we have right now)
  • A YML / config based strategy
  • UI selector with a set of open-source icons shipped with the Navigation module itself
  • Create a contrib module that provides more icons from an open-source library
  • Other ideas?

Remaining tasks

Decide direction.

User interface changes

API changes

Data model changes


Viewing all articles
Browse latest Browse all 293458

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>