@microsoft/fast-element > ElementController > removeStyles
ElementController.removeStyles() method
Removes styles from this element. Providing an HTMLStyleElement will detach the element instance from the shadowRoot.
Signature:
removeStyles(styles: ElementStyles | HTMLStyleElement | null | undefined): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
styles |
ElementStyles | HTMLStyleElement | null | undefined |
the styles to remove. |
Returns:
void