feat(ui): add native control CSS system + button/text/tab examples (#1267)

This commit is contained in:
Alex
2026-05-12 22:05:47 +01:00
committed by GitHub
parent 82704a26ae
commit a0a710079b
28 changed files with 771 additions and 87 deletions
@@ -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,