Project

General

Profile

Actions

Bug #103576

open

TCA field type 'color' does not support 8 digit HEX-Codes

Added by Johannes Große Perdekamp 25 days ago. Updated 25 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2024-04-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
TCA, color
Complexity:
Is Regression:
Sprint Focus:

Description

When using the field type 'color' in combination with the 'valuePicker' to only have the ability to select custom colors, it is possible to define a color containing transparency values (e.g. #00CFB5FF), but only the first 6 characters will be evaluated. So anything larger than 6 chars cannot be used here.

Actions #1

Updated by Eric Harrer 25 days ago

According to the documentation, only exactly 7 characters can currently be used as a value for valuePicker elements.
https://docs.typo3.org/m/typo3/reference-tca/12.4/en-us/ColumnsConfig/Type/Color/Properties/ValuePicker.html#columns-color-properties-valuePicker

Apparently, the possibility of the eight-value hex-color syntax (see https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color) was never considered for this TCA type (and its predecessors).

To display the full range of colors used on the web, a transparency selector should be added to the color picker, and predefined "valuePicker" values should allow two additional digits for transparency.

Actions #2

Updated by Eric Harrer 25 days ago

  • Category set to Backend User Interface
  • Tags set to TCA, color
Actions

Also available in: Atom PDF