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

Improve additional classes field #31360

Closed
coreyworrell opened this issue Apr 29, 2021 · 3 comments
Closed

Improve additional classes field #31360

coreyworrell opened this issue Apr 29, 2021 · 3 comments

Comments

@coreyworrell
Copy link
Contributor

What problem does this address?

Makes adding custom classes more user friendly for styling options that may not fit into the other options offered by Gutenberg already.

What is your proposed solution?

Allow user to select from available classes that the theme offers along with adding custom. Similar to how EditorsKit plugin does it by using a token field.

Having the theme provide (via JSON and/or PHP) a list of classes (with labels) and possibly by group could make this very easy.

Utility classes for padding, margin, maximum widths, etc could take advantage of this. A label could be used with the underlying value being the class itself.

Screenshot from 2021-04-29 13-19-23

@CreativeDive
Copy link
Contributor

@coreyworrell This is a fantastic idea !

@mtias
Copy link
Member

mtias commented Apr 30, 2021

There are several items for iteration on style variations that relate to the class field in #7551. Would you mind transferring this request there?

@coreyworrell
Copy link
Contributor Author

@mtias okay done. thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants