feat(ui): add native control CSS system + button/text/tab examples (#1267)
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@
|
||||
box-sizing: border-box;
|
||||
height: 3.5rem;
|
||||
z-index: 100;
|
||||
background-color: var(--app-background);
|
||||
background-color: var(--surface-app);
|
||||
border-bottom: 1px solid var(--content-border-color);
|
||||
padding:
|
||||
0
|
||||
|
||||
@@ -289,14 +289,14 @@
|
||||
(overlayKeydown)="onUserPopoverKeydown($event)"
|
||||
>
|
||||
<section
|
||||
class="user-account-popover"
|
||||
class="user-account-popover surface-page"
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
cdkTrapFocus
|
||||
cdkTrapFocusAutoCapture
|
||||
[attr.aria-label]="'settingsProfile.title' | transloco"
|
||||
>
|
||||
<header class="user-account-popover-header">
|
||||
<header class="user-account-popover-header surface-card">
|
||||
<div class="user-account-popover-title-row">
|
||||
<h2>Grimmory <span>{{ appVersionLabel() }}</span></h2>
|
||||
<button
|
||||
@@ -312,8 +312,8 @@
|
||||
|
||||
<div class="user-account-popover-header-actions">
|
||||
<button
|
||||
appButton
|
||||
type="button"
|
||||
class="user-account-popover-settings"
|
||||
(click)="openSettings()"
|
||||
>
|
||||
<i class="pi pi-cog" aria-hidden="true"></i>
|
||||
@@ -322,8 +322,9 @@
|
||||
|
||||
@if (updateAvailable()) {
|
||||
<button
|
||||
appButton
|
||||
variant="primary"
|
||||
type="button"
|
||||
class="user-account-popover-update"
|
||||
(click)="openChangelogDialog()"
|
||||
>
|
||||
<i class="pi pi-arrow-up-right" aria-hidden="true"></i>
|
||||
|
||||
@@ -7,6 +7,7 @@ import { CdkTrapFocus } from '@angular/cdk/a11y';
|
||||
import { CdkConnectedOverlay, CdkOverlayOrigin } from '@angular/cdk/overlay';
|
||||
import { BookDialogHelperService } from '../../../features/book/components/book-browser/book-dialog-helper.service';
|
||||
import { UnifiedNotificationBoxComponent } from '../../components/unified-notification-popover/unified-notification-popover-component';
|
||||
import { AppButtonDirective } from '../../components/button/app-button.directive';
|
||||
import { MenuComponent } from '../../components/menu/menu.component';
|
||||
import { MenuEntry } from '../../components/menu/menu-item.model';
|
||||
import {
|
||||
@@ -89,6 +90,7 @@ function isNewerVersion(latest: string | undefined, current: string | undefined)
|
||||
selector: 'app-sidebar',
|
||||
imports: [
|
||||
AppSidebarSectionComponent,
|
||||
AppButtonDirective,
|
||||
Popover,
|
||||
UnifiedNotificationBoxComponent,
|
||||
MenuComponent,
|
||||
|
||||
@@ -31,7 +31,7 @@ describe('theme-palette-extend', () => {
|
||||
expect(auraPrimitive['skyBlue']['700']).toBe('#2e88e6');
|
||||
expect(auraPrimitive['dustyNeutral']['950']).toBe('#2f2821');
|
||||
expect(preset.primitive?.['coralSunset']['500']).toBe('#ef7550');
|
||||
expect(preset.semantic?.colorScheme?.light?.content?.background).toBe('var(--page-background)');
|
||||
expect(preset.semantic?.colorScheme?.dark?.content?.background).toBe('var(--page-background)');
|
||||
expect(preset.semantic?.colorScheme?.light?.content?.background).toBe('var(--surface-page)');
|
||||
expect(preset.semantic?.colorScheme?.dark?.content?.background).toBe('var(--surface-page)');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -232,8 +232,8 @@ Object.assign(Aura.primitive, customPalettes);
|
||||
const AppPrimePreset = definePreset(Aura, {
|
||||
semantic: {
|
||||
colorScheme: {
|
||||
light: { content: { background: 'var(--page-background)' } },
|
||||
dark: { content: { background: 'var(--page-background)' } }
|
||||
light: { content: { background: 'var(--surface-page)' } },
|
||||
dark: { content: { background: 'var(--surface-page)' } }
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user