(styles: string | ThemableArray)
| 69 | * @param {string | ThemableArray} styles Themable style text to register. |
| 70 | */ |
| 71 | export function loadStyles(styles: string | ThemableArray): void { |
| 72 | const styleParts: ThemableArray = Array.isArray(styles) ? styles : splitStyles(styles); |
| 73 | |
| 74 | if (_injectStylesWithCssText === undefined) { |
| 75 | _injectStylesWithCssText = shouldUseCssText(); |
| 76 | } |
| 77 | |
| 78 | applyThemableStyles(styleParts); |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * Allows for customizable loadStyles logic. e.g. for server side rendering application |
no test coverage detected