MCPcopy Create free account
hub / github.com/UI5/webcomponents / getStylesString

Function getStylesString

packages/base/src/theming/getStylesString.ts:5–11  ·  view source on GitHub ↗
(styles: ComponentStylesData)

Source from the content-addressed store, hash-verified

3const MAX_DEPTH_INHERITED_CLASSES = 10; // TypeScript complains about Infinity and big numbers
4
5const getStylesString = (styles: ComponentStylesData) => {
6 if (Array.isArray(styles)) {
7 return (styles.filter(style => !!style).flat(MAX_DEPTH_INHERITED_CLASSES) as Array<string>).join(" ");
8 }
9
10 return styles;
11};
12
13export default getStylesString;

Callers 1

getEffectiveStyleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…