You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
describes: If you're using Angular Material, this class is included automatically by Angular Material's theming system. Otherwise, you can include this mixin in a global stylesheet.
In an Angular project we have
<h2 id="id" class="cdk-visually-hidden">
text
</h2>
and this used to be hidden in Angular 18. After automatic upgrade it became visible.
crisbeto
added
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
docs
This issue is related to documentation
and removed
needs triage
This issue needs to be triaged by the team
labels
Mar 11, 2025
Is this a regression?
The previous version in which this bug was not present was
18
Description
https://material.angular.io/cdk/a11y/overview#hiding-elements-in-an-accessible-way
describes: If you're using Angular Material, this class is included automatically by Angular Material's theming system. Otherwise, you can include this mixin in a global stylesheet.
In an Angular project we have
and this used to be hidden in Angular 18. After automatic upgrade it became visible.
Adding
makes it work again, but the guide says it should work automatically as we use Angular Material.
Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-starter-fmwfcfx3?file=src%2Fmain.ts
Steps to reproduce:
Expected Behavior
The text should be hidden
Actual Behavior
The text is visible
Environment
The text was updated successfully, but these errors were encountered: