mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 14:17:18 +00:00
feat(ui): unify brand accents and polish shared controls
Standardize highlighted buttons, selected controls, and loading indicators on coollabs accent colors; improve light-mode log toolbar styling; enhance small popups with compact/icon modes; and align navbars, helpers, and related layouts with matching tests.
This commit is contained in:
1 parent
8e57a9ab6b
commit
bdb367555d
81 files changed
+423
-149
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
test('highlighted buttons use the shared coollabs style in every color scheme', function () {
|
||||
$utilities = file_get_contents(resource_path('css/utilities.css'));
|
||||
$appStyles = file_get_contents(resource_path('css/app.css'));
|
||||
$views = collect(new RecursiveIteratorIterator(new RecursiveDirectoryIterator(resource_path('views'))))
|
||||
->filter(fn (SplFileInfo $file): bool => $file->isFile() && $file->getExtension() === 'php')
|
||||
->map(fn (SplFileInfo $file): string => file_get_contents($file->getPathname()))
|
||||
->implode("\n");
|
||||
|
||||
expect($utilities)
|
||||
->toContain('@utility button-highlighted')
|
||||
->toContain('@apply border-2 text-coollabs-200 dark:text-white bg-coollabs-50 dark:bg-coollabs/20 border-coollabs dark:border-coollabs-100 hover:bg-coollabs hover:text-white dark:hover:bg-coollabs-100 dark:hover:text-white;')
|
||||
->and($appStyles)
|
||||
->toContain('button[isHighlighted]:not(:disabled)')
|
||||
->toContain('@apply button-highlighted;')
|
||||
->and($views)
|
||||
->not->toContain('dark:bg-warning/15! dark:text-warning! dark:ring-warning/25');
|
||||
});
|
||||
Reference in new issue
Block a user