When using the FieldType color with opacity the automatically created db-field ist varchar(7); only long enough for regular hex-values.
- identifier: hg-color
type: Color
opacity: true
autocomplete: true
default: '#0000FF'
valuePicker:
items:
- [ 'helleres Grau', 'rgba(225, 222, 222, 0.2)']
This seems to be a little to short for rgba(xxx, xxx,xxx,0.5) or named colors like LightGoldenrodYellow. After changing it to a longer value in the db directly, the BE Analyze Database Structure suggests to resize it back to 7. This can be a little bit confusing.
content-blocks v1.3.19
When using the FieldType color with opacity the automatically created db-field ist varchar(7); only long enough for regular hex-values.
This seems to be a little to short for rgba(xxx, xxx,xxx,0.5) or named colors like LightGoldenrodYellow. After changing it to a longer value in the db directly, the BE Analyze Database Structure suggests to resize it back to 7. This can be a little bit confusing.
content-blocks v1.3.19