SOLVED: Elements Controls - text-align, exclude not working properly

When creating custom Elements and using the text-align control-type, the “exclude” functionality, does only work for “left” and “right”, not for “justify” or “center”

        $this->controls['textAlign'] = [
            'tab' => 'content',
            'label' => esc_html__('Text align', 'bricks'),
            'type' => 'text-align',
            'css' => [
                [
                    'property' => 'text-align',
                    'selector' => '.text-wrapper',
                ],
            ],
            'exclude' => ['left', 'right', 'center', 'justify'],
        ];

Hi @UserfreundSuat,

you are right. I’ve checked and I can reproduce the issue.

I’ve added it to the bug tracker.


Matej

1 Like

Hi Suat,
We’ve fixed this issue in Bricks 1.11.1, now available as a one-click update in your WordPress Dashboard.

Changelog: Bricks 1.11.1 Changelog – Bricks

Please let us know if you are still experiencing issues.

Best regards,
timmse