Project

General

Profile

Actions

Feature #103576

closed

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

Added by Johannes Große Perdekamp 4 months ago. Updated 15 days ago.

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

100%

Estimated time:
PHP Version:
Tags:
TCA, color
Complexity:
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 4 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.

Actions #2

Updated by Eric Harrer 4 months ago

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

Updated by Riccardo De Contardi 25 days ago

  • Tracker changed from Bug to Feature
  • TYPO3 Version deleted (12)
Actions #4

Updated by Gerrit Code Review 15 days 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

Actions #5

Updated by Gerrit Code Review 15 days 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

Actions #6

Updated by Gerrit Code Review 15 days 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

Actions #7

Updated by Georg Ringer 15 days ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF