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 Color Settings in Accordion Block #96

Open
dcooney opened this issue Sep 9, 2020 · 0 comments
Open

Improve Color Settings in Accordion Block #96

dcooney opened this issue Sep 9, 2020 · 0 comments

Comments

@dcooney
Copy link
Contributor

dcooney commented Sep 9, 2020

The current color settings (font and background) settings do not work in a practical website context. In most cases, users will require more granular control over the block styling otherwise they will be required to write custom CSS to complete the accordion styling. Element styling such as border/button colors, inline link styles and color contrast are problematic in the current implementation.

image

Proposal
Remove the font color setting and create a library of theme styles. Filterable theme styles would provide predefined color palettes and unique design aesthetics for the individual accordion items allowing for more control over the rendered output.

Implementation of the theme styling could work like the core Separator block does, where the available separator styles are radio selections in the block sidebar.
image

Accordion theming could potentially be extended at the theme level using hooks/filters.

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

1 participant