-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cdk/private): create cdk-visually-hidden style loader (#29757)
* feat(cdk/private): create cdk-visually-hidden style loader * fixup! feat(cdk/private): create cdk-visually-hidden style loader * fixup! feat(cdk/private): create cdk-visually-hidden style loader * fixup! feat(cdk/private): create cdk-visually-hidden style loader * fixup! feat(cdk/private): create cdk-visually-hidden style loader * fixup! feat(cdk/private): create cdk-visually-hidden style loader * fixup! feat(cdk/private): create cdk-visually-hidden style loader * fixup! feat(cdk/private): create cdk-visually-hidden style loader
- Loading branch information
1 parent
d206225
commit 9b4085c
Showing
5 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
*/ | ||
|
||
export * from './style-loader'; | ||
export * from './visually-hidden/visually-hidden'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@use '../../a11y'; | ||
|
||
@include a11y.a11y-visually-hidden(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright Google LLC All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.dev/license | ||
*/ | ||
|
||
import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core'; | ||
|
||
/** | ||
* Component used to load the .cdk-visually-hidden styles. | ||
* @docs-private | ||
*/ | ||
@Component({ | ||
standalone: true, | ||
styleUrl: 'visually-hidden.css', | ||
exportAs: 'cdkVisuallyHidden', | ||
encapsulation: ViewEncapsulation.None, | ||
template: '', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class _VisuallyHiddenLoader {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters