hide-if-labelled-by
The hide-if-labelled-by
snippet hides any HTML element that uses an aria-labelledby
, or one of its ancestors, if the related aria element contains the targeted text.
Use this snippet to hide elements based on searched text.
Parameters
Name | Description | Mandatory |
---|---|---|
search | The string to look for in HTML elements. If the string begins and ends with a slash (/), the text in between is treated as a regular expression. | Yes |
selector | The CSS selector of an HTML element that uses an | Yes |
| The CSS selector of an ancestor of the HTML element that uses an | No |
Filter examples
The following table lists examples that use the hide-if-labelled-by
snippet:
Filter | Result |
---|---|
| Hides any |
| Hides any |
Last updated