dsadas
All checks were successful
Deploy / deploy-staging (push) Successful in 5s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-05-04 02:43:04 +02:00
parent 3cd5d90f1a
commit 9659ce27b4
5 changed files with 15 additions and 20 deletions

View File

@@ -359,12 +359,7 @@ function module_shell_header(string $module, array $options = []): string
if ($label === '' || $href === '') {
continue;
}
$variant = trim((string) ($action['variant'] ?? 'secondary'));
$size = trim((string) ($action['size'] ?? 'sm'));
$class = $variant === 'ghost' ? 'module-button module-button--ghost' : 'module-button module-button--secondary';
if ($size === 'sm') {
$class .= ' module-button--small';
}
$class = 'module-button module-button--secondary module-button--small';
$html .= '<a class="' . e($class) . '" href="' . e($href) . '">' . e($label) . '</a>';
}
return $html;