Skip to content

Commit

Permalink
feat(material/core): create focus-indicator structural styles loader (#…
Browse files Browse the repository at this point in the history
…29763)

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

* fixup! feat(material/core): create focus-indicator structural styles loader

* fixup! feat(material/core): create focus-indicator structural styles loader

* fixup! feat(material/core): create focus-indicator structural styles loader

* fixup! feat(material/core): create focus-indicator structural styles loader
  • Loading branch information
wagnermaciel authored Sep 20, 2024
1 parent a6a7e77 commit d206225
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
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';

/**
* 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 {}

0 comments on commit d206225

Please sign in to comment.