We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4e085c commit 1386766Copy full SHA for 1386766
webapp/src/Utils/Utils.php
@@ -350,6 +350,8 @@ public static function convertToColor(string $hex): ?string
350
public static function parseHexColor(string $hex): array
351
{
352
$tmp = substr($hex, 1);
353
+ // For a RGB hex value (without A), add a fully opaque alpha channel.
354
+ // e.g. convert #ABC to #ABCF, and #123456 to #123456FF
355
if (strlen($tmp) % 3 == 0) {
356
$mult = strlen($tmp) / 3;
357
$hex .= str_repeat("f", $mult);
0 commit comments