Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(material/core): create focus-indicator structural styles loader #29763

Merged
merged 5 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/material/core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ ng_module(
":option/optgroup.css",
":internal-form-field/internal-form-field.css",
":ripple/ripple-structure.css",
":focus-indicators/structural-styles.css",
] + glob(["**/*.html"]),
deps = [
"//src:dev_mode_types",
Expand Down Expand Up @@ -72,6 +73,12 @@ sass_library(
],
)

sass_binary(
name = "structural_styles_scss",
src = "focus-indicators/structural-styles.scss",
deps = [":core_scss_lib"],
)

sass_binary(
name = "pseudo_checkbox_scss",
src = "selection/pseudo-checkbox/pseudo-checkbox.scss",
Expand Down
3 changes: 3 additions & 0 deletions src/material/core/focus-indicators/structural-styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@use './private';

@include private.structural-styling();
23 changes: 23 additions & 0 deletions src/material/core/focus-indicators/structural-styles.ts
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';

crisbeto marked this conversation as resolved.
Show resolved Hide resolved
/**
* Component used to load structural styles for focus indicators.
* @docs-private
*/
@Component({
standalone: true,
selector: 'structural-styles',
styleUrl: 'structural-styles.css',
encapsulation: ViewEncapsulation.None,
template: '',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class _StructuralStylesLoader {}
Loading