Feature #103576
closedTCA field type 'color' does not support 8 digit HEX-Codes
100%
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 8 months 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 8 months ago
- Category set to Backend User Interface
- Tags set to TCA, color
Updated by Riccardo De Contardi 5 months ago
- Tracker changed from Bug to Feature
- TYPO3 Version deleted (
12)
Updated by Gerrit Code Review 4 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85255
Updated by Gerrit Code Review 4 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85255
Updated by Gerrit Code Review 4 months ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85255
Updated by Georg Ringer 4 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset fedf7c1017df7ed32542e50b82c4c1bd6cba59b3.