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

Function removeStyle

packages/base/src/ManagedStyles.ts:62–64  ·  view source on GitHub ↗
(name: string, value = "")

Source from the content-addressed store, hash-verified

60};
61
62const removeStyle = (name: string, value = "") => {
63 document.adoptedStyleSheets = document.adoptedStyleSheets.filter(sh => (sh as Record<string, any>)._ui5StyleId !== getStyleId(name, value));
64};
65
66const createOrUpdateStyle = (content: string, name: string, value = "", theme?: string) => {
67 if (hasStyle(name, value)) {

Callers 1

deleteThemeBaseFunction · 0.85

Calls 1

getStyleIdFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…