1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-12 14:34:02 +00:00

clarify global config service

This commit is contained in:
William Martin
2024-11-06 15:16:24 -05:00
parent 4a1e27d7f3
commit 67c37dd018
2 changed files with 8 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ export * from "./radio-button";
export * from "./search";
export * from "./section";
export * from "./select";
export * from "./shared/bit-settings.service";
export * from "./shared/design-system.service";
export * from "./table";
export * from "./tabs";
export * from "./toast";

View File

@@ -1,8 +1,13 @@
import { effect, Injectable, signal, WritableSignal } from "@angular/core";
/** Global settings for the Bitwarden Design System */
/** Global config for the Bitwarden Design System */
@Injectable({ providedIn: "root" })
export class BitSettingsService {
export class DesignSystemService {
/**
* When true, enables "compact mode".
*
* Component authors can hook into compact mode with the `bit-compact:` Tailwind variant.
**/
compactMode: WritableSignal<boolean> = signal(false);
constructor() {