Create Field type color and set format to hex rgb or rgba.
<field type="color" name"field_name" format="rgba" description="" />
color chooser in selected format. with color palette, hue and (if rgba mode) with transparency.
looks like each control is multiple times (at least twice), Color Range selector, Hue Selector and Transparency Selector.
that one in front (and hue selector left) are not working.
J4 Alpha 2
PHP 7.1.8
Firefox 57.0.1
Safari 11.0.2
Build | Alpha 2 | ⇒ | 4.0-dev |
@dgt41 should i close this Issue?
Status | New | ⇒ | Discussion |
Can leave it open as a reference for the time being Franz ;)
Sorry but something like that?
https://codepen.io/Proximate/pen/EoWmzo
Quick and Dirty (a lot of unused JS) but working so far...
@marcorensch - It will be like that but a much more basic implementation. Here was the PR I did for the non custom element version: #16385
Labels |
Added:
J4 Issue
|
@dgrammatiko any update on this refactoring - its been 6 months
@brianteeman the code is here: https://codepen.io/dgrammatiko/pen/zLvXwR
Haven't published anything because there was a discussion about using web components or just custom elements so I needed to know is shadow dom is something we will consider for such components. This has been resolved in our last meeting and once we have the building scripts ready for shadow dom I'll PR this as well
@dgrammatiko has this been worked or can this be closed?
Status | Discussion | ⇒ | Information Required |
This is still an open issue
Status | Information Required | ⇒ | Confirmed |
Build | master | ⇒ | 4.0-dev |
@bembelimen theres a pr for the color field #35639 so this should be closed
Labels |
Added:
No Code Attached Yet
Information Required
Removed: ? |
Please close as stated above by @dgrammatiko
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-08-23 22:20:01 |
Closed_By | ⇒ | Quy |
@marcorensch this script is under refactoring, so instead of the 2-3 different scripts for the color pickers we will end up with one script, with no dependencies (bye bye jQuery) and also will be a Custom Element. This is the starting point if you want to help: https://codepen.io/dgt41/pen/LjXQoP?editors=0010 it's based on the MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Colors/Color_picker_tool
So appart from making this actually work as intended we need to make it also accessible...