Skip to main content

@microsoft/fast-element > Controller > removeStyles

Controller.removeStyles() method

Removes styles from this element. Providing an HTMLStyleElement will detach the element instance from the shadowRoot.

Signature:
removeStyles(styles: ElementStyles | HTMLStyleElement): void;

Parameters

ParameterTypeDescription
stylesElementStyles | HTMLStyleElementthe styles to remove.
Returns:

void