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:
@@ -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";
|
||||
|
||||
@@ -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() {
|
||||
Reference in New Issue
Block a user