Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Enhanced Icon Category Support #40

Open
MadtownLems opened this issue May 1, 2024 · 0 comments
Open

Request: Enhanced Icon Category Support #40

MadtownLems opened this issue May 1, 2024 · 0 comments
Labels
Enhancement New enhancement or feature request.

Comments

@MadtownLems
Copy link

We're trying to use what would effectively be two taxonomies for our Icon categories. Ideally, we'd love to have them separated in the UI:

Animals

  • Cats
  • Dogs
  • Elephants

Plants

  • Bushes
  • Trees

(Note that we don't want them to be separate Icon Types because icons can have terms from multiple taxonomies).

A less-involved approach might be simply letting us opt out of sorting the Icons alphabetically, and just presenting them in the order they are present in the array. That would at least let us group the terms of each taxonomy together. This method would benefit from the ability to add labels/headings in the array, but that's probably getting a bit "out there", especially as it feels like a wonky workaround for just supporting multiple taxonomies, which I assume is out of scope. Something like:

const customIconCategories = [
{
name: 'Animals',
title: __( 'Zebra', 'ext-icon-block-modifier' ),
is_heading: true
},
{
name: 'cats',
title: __( 'Cats', 'ext-icon-block-modifier' ),
},
{
name: 'dogs',
title: ( 'Dogs', 'ext-icon-block-modifier' ),
},
{
name: 'Plants',
title:
('Plants', 'ext-icon-block-modifier',
is_heading: true
}
];

Cheers!

@ndiego ndiego added the Enhancement New enhancement or feature request. label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New enhancement or feature request.
Projects
None yet
Development

No branches or pull requests

2 participants