Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coloris
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
coloris
Merge requests
!12
Issue
#3409205
: Broken swatch display in widget when not providing swatches
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3409205
: Broken swatch display in widget when not providing swatches
issue/coloris-3409205:3409205-broken-swatch-display
into
1.0.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Simon Bäse
requested to merge
issue/coloris-3409205:3409205-broken-swatch-display
into
1.0.x
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#3409205
0
0
Merge request reports
Compare
1.0.x
1.0.x (HEAD)
and
latest version
latest version
773ca1df
1 commit,
1 year ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Element/ColorisWidget.php
+
1
−
1
Options
@@ -50,7 +50,7 @@ class ColorisWidget extends Textfield {
$focus_input
=
isset
(
$element
[
'#focus_input'
])
&&
$element
[
'#focus_input'
]
==
FALSE
?
'false'
:
'true'
;
$clear_button_show
=
isset
(
$element
[
'#clear_button_show'
])
&&
$element
[
'#clear_button_show'
]
==
TRUE
?
'true'
:
'false'
;
$clear_button_label
=
$element
[
'#clear_button_label'
]
??
t
(
'Clear'
);
$swatches
=
$element
[
'#swatches'
]
??
[];
$swatches
=
array_filter
(
$element
[
'#swatches'
]
??
[]
)
;
$inline
=
isset
(
$element
[
'#inline'
])
&&
$element
[
'#inline'
]
==
TRUE
?
'true'
:
'false'
;
$element
=
[
'#prefix'
=>
'<div class="coloris-wrapper">'
,
Loading