aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/color.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/color.php')
-rw-r--r--views/default/input/color.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/views/default/input/color.php b/views/default/input/color.php
index 8bc4ad2a3..be8154fc9 100644
--- a/views/default/input/color.php
+++ b/views/default/input/color.php
@@ -1 +1,12 @@
-<input type="color" <?php echo elgg_format_attributes($vars); ?> /> \ No newline at end of file
+<?php
+$defaults = array(
+ 'class' => 'elgg-input-color',
+);
+
+$vars = array_merge($defaults, $vars);
+
+$vars['type'] = 'color';
+
+?>
+
+<input <?php echo elgg_format_attributes($vars); ?> /> \ No newline at end of file