Add theme support for custom palettes and shared "ColorPalette" component#2186
Add theme support for custom palettes and shared "ColorPalette" component#2186
Conversation
Move palette definition server side.
karmatosed
left a comment
There was a problem hiding this comment.
This looks really good. My only thought would be can somehow it be indicated the order the colors appear? I know it doesn't matter but for some it will visually matter, maybe just a comment in code?
|
The order would be the order in the array. Do you mean to clarify that? |
|
@mtias yes I think clarifying it is good, perhaps just a code comment though. |
Codecov Report
@@ Coverage Diff @@
## master #2186 +/- ##
==========================================
- Coverage 22.3% 22.29% -0.02%
==========================================
Files 137 138 +1
Lines 4291 4293 +2
Branches 722 722
==========================================
Hits 957 957
- Misses 2815 2817 +2
Partials 519 519
Continue to review full report at Codecov.
|
melchoyce
left a comment
There was a problem hiding this comment.
Great idea, seems easy for themers to implement. 👍
Any way we could also have it support Sass color variables somehow?
youknowriad
left a comment
There was a problem hiding this comment.
Awesome feature, code looks good.
Looks like there's a small phpcs error
Done via: