- Issue created by @heyyo
- 🇫🇮Finland lauriii Finland
+1 for this! These are common and important fields in the context of a page builder.
- 🇮🇱Israel heyyo Jerusalem
I edited the code example for the color format, where the default colors palette should probably be an enum and not several default values.
Also not sure which data format would be the best adapted for named steps in a range.
Enum won't bet enough, we need key/value options.<label for="tempB">Choose a comfortable temperature:</label><br /> <input type="range" id="tempB" name="temp" list="values" /> <datalist id="values"> <option value="0" label="very cold!"></option> <option value="25" label="cool"></option> <option value="50" label="medium"></option> <option value="75" label="getting warm!"></option> <option value="100" label="hot!"></option> </datalist>
- Merge request !917Issue #3518105: Added support for color and range format. → (Open) created by sayan_k_dutta
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Given https://git.drupalcode.org/project/experience_builder/-/merge_requests/9..., I'm hoping @larowlan can point us in the right direction — I'm currently flailing to find what I'd swear is a subclass of
\JsonSchema\Constraints\FormatConstraint
being added by him to XB! - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
You're off to a great start here! :D
Asked a few questions, and asked @larowlan to provide you with a crucial pointer, because while this may be what is a reasonable expectation from a HTML POV, neither "color" nor "range" are part of the JSON Schema spec. That makes the SDC integration nontrivial.
(Added this to 📌 [SPIKE] Comprehensive plan for integrating with SDC Active . Tangentially related: ✨ Enable contrib to register `pattern` and `$ref` shape matches for prop shapes Active .)
This definitely still needs test coverage.