Use the ebt core method to validate the HEX color element

Created on 14 February 2023, almost 2 years ago

Problem/Motivation

Currently there are a set of color fields like Title Color, Background Color, Hover Title Color and Hover Background Color but currently they're not using validations, so the editor isn't mandatory to insert a custom color. The user technically speaking insert any string even not being a class. In the ticket Missing element validate on color element Fixed we implemented a method to validate that using Color::validateHex

Proposed resolution

We can implement the form ElementValidate from form api and call the ebt core method to validate that in a "generic" way

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Fixed

Version

1.4

Component

Code

Created by

🇧🇷Brazil renatog Campinas

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

Comments & Activities

Production build 0.71.5 2024