UNPKG

@ni/spright-components

Version:

NI Spright Components

11 lines 642 B
import { // eslint-disable-next-line no-restricted-imports display as foundationDisplay } from '@ni/fast-foundation'; /** * Each element should use the display utility which will create styles to: * - Set the `:host` display property * - Respond to the `hidden` attribute set on `:host` * - Configure `box-sizing` for `:host`, all elements in shadow root, and `::before` / `::after` pseudoelements */ export const display = (displayValue) => `${foundationDisplay(displayValue)}:host{box-sizing:border-box;}*{box-sizing:border-box;}:host::before,:host::after,::before,::after{box-sizing:border-box;}`; //# sourceMappingURL=display.js.map