limestone/ThemeDecorator
Exports the limestone/ThemeDecoratorlimestone/ThemeDecorator.ThemeDecorator HOC
Members
Section titled “Members ”ThemeDecorator Higher-Order Component
Section titled “ThemeDecorator   Higher-Order Component ”A higher-order component that applies Limestone theming to an application.
It also applies ui/FloatingLayerui/FloatingLayer.FloatingLayerDecorator, ui/resolutionui/resolution.ResolutionDecorator, limestone/Skinnablelimestone/Skinnable, spotlightspotlight.SpotlightRootDecorator, and i18n/I18nDecoratori18n/I18nDecorator.I18nDecorator. It is meant to be applied to the root element of an app.
limestone/Skinnablelimestone/Skinnable provide a way to change the coloration of your app. The
currently supported skins for Limestone are "limestone" (the default, dark skin) and
"limestone-light". Use the skin property to assign a skin. Ex: <DecoratedApp skin="light" />
Note: This HoC passes className to the wrapped component. It must be passed to the main DOM
node.
Includes:
ui/FloatingLayerui/FloatingLayer.FloatingLayerDecorator
Includes:
ui/resolutionui/resolution.ResolutionDecorator
Includes:
spotlight/SpotlightRootDecoratorspotlight/SpotlightRootDecorator.SpotlightRootDecorator
Includes:
limestone/Skinnablelimestone/Skinnable.Skinnable
Includes:
limestone/ThemeDecoratorlimestone/ThemeDecorator.AccessibilityDecorator
Configuration
accessible
Section titled “accessible”Applies AccessibilityDecorator.
If not applied, app will not support accessibility options.
Default: truedisableFullscreen
Section titled “disableFullscreen”Disables use of full screen.
Default: falsefocusEffectClass
Section titled “focusEffectClass”A CSS class name to apply globally to every spottable component when it receives spotlight focus.
This is the declarative equivalent of calling setFocusEffectClass imperatively. It acts as
an app-wide default.
Enables a floating layer for popup components.
If not applied, app will be responsible for applying the decorator.
Default: trueOptions for I18nDecorator.
May be false to prevent applying the decorator. If not applied, app will be responsible for
applying the decorator.
noAutoFocus
Section titled “noAutoFocus”Disables setting spotlight focus on first render.
Default: falseoverlay
Section titled “overlay”Enables overlay mode (no background color will be applied).
Default: falseOverride the resolution independence settings.
rootId
Section titled “rootId”Specifies the id of the React DOM tree root node
Default: 'root'spotlight
Section titled “spotlight”Applies spotlight decorator.
If not applied, app will be responsible for applying the decorator.
Default: trueAccessibilityDecorator Higher-Order Component
Section titled “AccessibilityDecorator   Higher-Order Component ”A higher-order component that classifies an application with a target set of font sizing rules.
Properties added to wrapped component
focusRing
Section titled “focusRing”Enables additional features to help users visually differentiate components.
The UI library will be responsible for using this information to add focus ring to some components.
Default: falsehighContrast
Section titled “highContrast”Enables additional features to help users visually differentiate components.
The UI library will be responsible for using this information to adjust the components' contrast to this preset.
Default: falseThe variant(s) on a skin that a component should use when rendering. These will typically alter the appearance of a skin's existing definition in a way that does not override that skin's general styling.
Multiple data types are supported by this prop, which afford different conveniences and abilities. String and Array are effectively the same, supporting just additions to the variants being applied to a component, and are much more convenient. Objects may also be used, and have the ability to disable variants being passed by their ancestors. Objects take the format of a basic hash, with variants as key names and true/false Booleans as values, depicting their state. If a variant is excluded from any version of data type used to set this prop, that variant will ignored, falling back to the defaultVariant or parent variant, in that order.
skinVariants examples:
// String
skinVariants="highContrast"
// Array
skinVariants={['highContrast']}
// Object
skinVariants={{
highContrast: true,
grayscale: false
}}Sets the goal size of the text.
The UI library will be responsible for using this
information to adjust the components' text sizes to this preset.
Current presets are 'normal' (default), and 'large'.