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

Function createOrUpdateStyle

packages/base/src/ManagedStyles.ts:66–72  ·  view source on GitHub ↗
(content: string, name: string, value = "", theme?: string)

Source from the content-addressed store, hash-verified

64};
65
66const createOrUpdateStyle = (content: string, name: string, value = "", theme?: string) => {
67 if (hasStyle(name, value)) {
68 updateStyle(content, name, value, theme);
69 } else {
70 createStyle(content, name, value, theme);
71 }
72};
73
74const mergeStyles = (style1?: string, style2?: string) => {
75 if (style1 === undefined) {

Callers 7

createBlockingStyleFunction · 0.85
insertMainFontFaceFunction · 0.85
insertScrollbarStylesFunction · 0.85
insertSystemCSSVarsFunction · 0.85
insertOpenUI5PopupStylesFunction · 0.85
loadThemeBaseFunction · 0.85
loadComponentPackagesFunction · 0.85

Calls 3

hasStyleFunction · 0.85
updateStyleFunction · 0.85
createStyleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…