az-digital / az_quickstart

UArizona's web content management system built with Drupal 10.
https://quickstart.arizona.edu
GNU General Public License v2.0
30 stars 20 forks source link

Investigate replacing hard-coded style options in paragraphs behavior settings with config entities #1072

Open joeparsons opened 2 years ago

joeparsons commented 2 years ago

What is the problem that we want to solve?

We currently provide various style options within Paragraphs behavior settings that correspond with CSS classes that are applied in the rendered paragraph markup.

When we first started using Paragraphs behavior plugins to implement custom style options for paragraphs, we talked about the possibility of replacing the hard-coded list of style options available in paragraphs behavior settings forms with custom "style" configuration entities that could be modified / added to by site administrators.

We should investigate whether this approach would actually be feasible, and if so decide on the best implemetnation.

Additional context

Current paragraphs behavior "style" settings and options:

Default Quickstart Paragraph Behavior

Quickstart Cards Paragraph Behavior

Quickstart Text with Background Paragraph Behavior

Conditions of satisfaction

trackleft commented 6 months ago

Possibly use the https://www.drupal.org/project/ui_styles module