Bug #103576
openTCA field type 'color' does not support 8 digit HEX-Codes
0%
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.
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.
Updated by Eric Harrer 25 days ago
- Category set to Backend User Interface
- Tags set to TCA, color