Scopes the contrast preference to a subtree by reflecting [cngxContrast] onto the host [data-contrast] attribute - th
core/theming
Category
No results found
Features10#
- DirectiveCngxContrastScopes the contrast preference to a subtree by reflecting [cngxContrast] onto the host [data-contrast] attribute - th...
- DirectiveCngxDensityScopes the density preference to a subtree by reflecting [cngxDensity] onto the host [data-density] attribute
- DirectiveCngxMotionScopeScopes the motion preference to a subtree by reflecting [cngxMotionScope] onto the host [data-motion] attribute
- DirectiveCngxTouchTargetScopes the touch-target mode to a subtree by reflecting [cngxTouchTarget] onto the host [data-touch] attribute
- TokenCNGX_A11Y_STORAGEThe Storage backend {@link withPersistence} reads from and writes to
- TokenCNGX_CONTRASTHolds the app-wide contrast preference as a WritableSignal
- TokenCNGX_DENSITYHolds the app-wide density preference as a WritableSignal
- TokenCNGX_MOTIONHolds the app-wide motion preference as a WritableSignal
- TokenCNGX_TEXT_SCALEHolds the app-wide text-scale preference as a WritableSignal
- TokenCNGX_TOUCH_TARGETHolds the app-wide touch-target mode as a WritableSignal
References39#
- InterfaceStringManifestEntryOne row of any of the three manifests
- FunctioninjectA11yPreferencesRead the four accessibility-axis signals as one bundle in an injection context
- FunctioninjectContrastRead the app-wide contrast signal in an injection context
- FunctioninjectDensityRead the app-wide density signal in an injection context
- FunctioninjectMotionRead the app-wide motion signal in an injection context
- FunctioninjectTextScaleRead the app-wide text-scale signal in an injection context
- FunctioninjectTouchTargetsRead the app-wide touch-target signal in an injection context
- FunctioninstallAxisPersistence
- FunctionprovideA11yPreferencesInstall all four accessibility axes (density, text-scale, motion, contrast) behind one call
- FunctionprovideContrastInstall the contrast preference at app root and reflect it onto <html data-contrast> , driving the higher-contr...
- FunctionprovideDensityInstall the density preference at app root and reflect it onto <html data-density> , mirroring how the colour r...
- FunctionprovideMotionInstall the motion preference at app root and reflect it onto <html data-motion> , driving the reduced-motion s...
- FunctionprovidePersistence
- FunctionprovideTextScaleInstall the text-scale preference at app root and reflect it onto <html data-text-size> , mirroring how density...
- FunctionprovideTouchTargetsInstall the touch-target mode at app root and reflect it onto <html data-touch>
- FunctionreadStored
- FunctionwithContrastSet the initial contrast preference the aggregator installs
- FunctionwithDensitySet the initial density rung the aggregator installs
- FunctionwithMotionSet the initial motion preference the aggregator installs
- FunctionwithPersistencePersist explicit accessibility choices via {@link CNGX_A11Y_STORAGE} (browser localStorage by default) under storageK...
- FunctionwithTextScaleSet the initial text-scale rung the aggregator installs
- VariableALREADY_COVEREDStrings the scanner cannot prove are covered, but which are - the override read happens through an indirection the re...
- VariableCONTRAST_VALUES
- VariablecontrastAxis
- VariableDENSITY_VALUES
- VariabledensityAxis
- VariableEXCLUDEDDeliberate non-hooks
- VariableMOTION_VALUES
- VariablemotionAxis
- VariableRATCHETThe gap list: user-facing strings that ship with no override path
- VariableTEXT_SCALE_VALUES
- VariabletextScaleAxis
- VariabletouchTargetAxis
- Type AliasCngxA11yPrefFeatureA feature for {@link provideA11yPreferences}
- Type AliasCngxContrastPreferenceThe three contrast preferences the [data-contrast] axis ships ( contrast-tokens.css )
- Type AliasCngxDensityValueThe three density rungs the [data-density] scale swap ships ( density-tokens.css )
- Type AliasCngxMotionPreferenceThe three motion preferences the [data-motion] axis ships ( motion-tokens.css )
- Type AliasCngxTextScaleValueThe three text-scale rungs the [data-text-size] swap ships ( text-scale-tokens.css )
- Type AliasCngxTouchTargetValueThe three touch-target modes the [data-touch] floor accepts