How to add styles Configurations to Drupal Block (views, menu etc) in gutenburg editor

Created on 15 May 2024, 6 months ago
Updated 16 May 2024, 6 months ago

I have create drupal view block and enable in Gutenburg editor, How i can add block specific styles configurations ( alignment, color, Font size etc) just like we do in gutenberg blocks

1. Create a view block
2. enable it in basic page content type
3. add the view block to page

💬 Support request
Status

Active

Version

3.0

Component

Code

Created by

🇵🇰Pakistan ahmad aziz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @ahmad aziz
  • 🇳🇴Norway thorandre

    Thank you for the request.

    I see you're using v.3.0 here which has some features related to that:

    So there are some features coming in there already. You can also use the different alignement alternatives out of the box, like Left/Right/Wide/Full width. But it is quite limited. Choosing font color will change the full view and so on. To handle the rest of the view styling you'll need to do that in the theme styling, like for any other Drupal View.

    I don't see features like having all the options that comes with the regular Heading block, to be used on the View title in the near future. Unless, this would be upvoted from a lot of people - and we see that it could be relatively easy to solve.

    What do you think, Ahmad? Does the above cover your needs for now?

  • 🇵🇰Pakistan ahmad aziz

    Thats good, but i can not see those configurations for my views block, I am using 'gutenberg:^3.0@beta' in Drupal 10.2.6
    I have create basic page and used view's block inside it, Clicking on the drupal view block does not provide those padding, Colors options.

    Thanks for response!

  • 🇨🇦Canada drclaw

    @Ahmad Aziz, at the moment you'll need to use the drupal/gutenberg:3.0.x-dev@dev version to get those style options on drupal blocks. That was only recently added and a new beta release hasn't been rolled out since December 2023.

    Add Color and Spacing block support to Drupal Blocks Fixed

Production build 0.71.5 2024