Skip to main content
Version: 2.x

HostController.removeStyles() method

@microsoft/fast-element > HostController > removeStyles

HostController.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