dsadas
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user