Skip to content

Commit

Permalink
chore(all): add keep-sorted comments to Sass imports
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 509583504
  • Loading branch information
asyncLiz authored and copybara-github committed Feb 14, 2023
1 parent 9025af3 commit 6c2aef6
Show file tree
Hide file tree
Showing 150 changed files with 498 additions and 62 deletions.
8 changes: 6 additions & 2 deletions autocomplete/lib/_filled-autocomplete.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@
// stylelint-disable selector-class-pattern --
// Selector '.md3-*' should only be used in this project.

// go/keep-sorted start
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use '../../elevation/lib/elevation';
@use '../../field/filled-field';
@use '../../menusurface/menu-surface';
@use '../../sass/theme';
@use '../../sass/shape';
@use '../../sass/theme';
@use '../../textfield/filled-text-field';
@use '../../tokens';
@use '../../elevation/lib/elevation';
// go/keep-sorted end

$custom-property-prefix: 'filled-autocomplete';
$dark-theme: tokens.md-comp-filled-autocomplete-values(
Expand Down
8 changes: 6 additions & 2 deletions autocomplete/lib/_outlined-autocomplete.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@
// stylelint-disable selector-class-pattern --
// Selector '.md3-*' should only be used in this project.

// go/keep-sorted start
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use '../../elevation/lib/elevation';
@use '../../field/outlined-field';
@use '../../menusurface/menu-surface';
@use '../../sass/shape';
@use '../../sass/theme';
@use '../../textfield/outlined-text-field';
@use '../../tokens';
@use '../../elevation/lib/elevation';
@use '../../sass/shape';
// go/keep-sorted end

$custom-property-prefix: 'outlined-autocomplete';
$dark-theme: tokens.md-comp-outlined-autocomplete-values(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use './autocomplete-list';
// go/keep-sorted end

@include autocomplete-list.styles;
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use './autocomplete-surface';
// go/keep-sorted end

@include autocomplete-surface.styles;
2 changes: 2 additions & 0 deletions autocomplete/lib/filled-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use './filled-autocomplete';
// go/keep-sorted end

@include filled-autocomplete.styles;
2 changes: 2 additions & 0 deletions autocomplete/lib/outlined-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use './outlined-autocomplete';
// go/keep-sorted end

@include outlined-autocomplete.styles;
2 changes: 2 additions & 0 deletions autocomplete/lib/shared-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use './shared';
// go/keep-sorted end

@include shared.styles;
4 changes: 4 additions & 0 deletions badge/lib/_badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@
// stylelint-disable selector-class-pattern --
// Selector '.md3-*' should only be used in this project.

// go/keep-sorted start
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use '../../sass/theme';
@use '../../tokens';
// go/keep-sorted end

$_custom-property-prefix: 'badge';

Expand Down
2 changes: 2 additions & 0 deletions badge/lib/badge-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use './badge';
// go/keep-sorted end

@include badge.styles;
6 changes: 5 additions & 1 deletion button/lib/_elevated-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use '../../sass/resolvers';
@use '../../sass/shape';
@use '../../sass/theme';
@use '../../sass/typography';
@use '../../sass/shape';
@use '../../tokens';
@use './elevation';
@use './shared';
// go/keep-sorted end

$_custom-property-prefix: 'elevated-button';

Expand Down
5 changes: 4 additions & 1 deletion button/lib/_elevation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
// stylelint-disable selector-class-pattern --
// Selector '.md3-*' should only be used in this project.

// go/keep-sorted start
@use 'sass:map';
@use 'sass:meta';

// go/keep-sorted end
// go/keep-sorted start
@use '../../elevation/lib/elevation';
// go/keep-sorted end

@mixin styles() {
md-elevation {
Expand Down
6 changes: 5 additions & 1 deletion button/lib/_filled-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use '../../sass/resolvers';
@use '../../sass/shape';
@use '../../sass/theme';
@use '../../sass/typography';
@use '../../sass/shape';
@use '../../tokens';
@use './elevation';
@use './shared';
// go/keep-sorted end

$_custom-property-prefix: 'filled-button';

Expand Down
6 changes: 5 additions & 1 deletion button/lib/_outlined-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use '../../sass/resolvers';
@use '../../sass/shape';
@use '../../sass/theme';
@use '../../sass/typography';
@use '../../sass/shape';
@use '../../tokens';
@use './shared';
// go/keep-sorted end

// stylelint-disable selector-class-pattern --
// Selector '.md3-*' should only be used in this project.
Expand Down
8 changes: 6 additions & 2 deletions button/lib/_shared.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
// stylelint-disable selector-class-pattern --
// Selector '.md3-*' should only be used in this project.

// go/keep-sorted start
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use '../../focus/focus-ring';
@use '../../ripple/ripple';
@use '../../sass/color';
@use '../../sass/dom';
@use '../../sass/typography';
@use '../../sass/resolvers';
@use '../../focus/focus-ring';
@use '../../sass/typography';
// go/keep-sorted end

@mixin styles() {
:host {
Expand Down
6 changes: 5 additions & 1 deletion button/lib/_text-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use '../../sass/resolvers';
@use '../../sass/shape';
@use '../../sass/theme';
@use '../../sass/typography';
@use '../../sass/shape';
@use '../../tokens';
@use './shared';
// go/keep-sorted end

$_custom-property-prefix: 'text-button';

Expand Down
6 changes: 5 additions & 1 deletion button/lib/_tonal-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use '../../sass/resolvers';
@use '../../sass/shape';
@use '../../sass/theme';
@use '../../sass/typography';
@use '../../sass/shape';
@use '../../tokens';
@use './elevation';
@use './shared';
// go/keep-sorted end

$_custom-property-prefix: 'tonal-button';

Expand Down
2 changes: 2 additions & 0 deletions button/lib/elevated-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use './elevated-button';
// go/keep-sorted end

@include elevated-button.styles;
2 changes: 2 additions & 0 deletions button/lib/filled-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use './filled-button';
// go/keep-sorted end

@include filled-button.styles;
2 changes: 2 additions & 0 deletions button/lib/outlined-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use './outlined-button';
// go/keep-sorted end

@include outlined-button.styles;
2 changes: 2 additions & 0 deletions button/lib/shared-elevation-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use './elevation';
// go/keep-sorted end

@include elevation.styles;
2 changes: 2 additions & 0 deletions button/lib/shared-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use './icon';
@use './shared';
@use './touch-target';
// go/keep-sorted end

@include shared.styles;
@include icon.styles;
Expand Down
2 changes: 2 additions & 0 deletions button/lib/text-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use './text-button';
// go/keep-sorted end

@include text-button.styles;
2 changes: 2 additions & 0 deletions button/lib/tonal-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use './tonal-button';
// go/keep-sorted end

@include tonal-button.styles;
6 changes: 5 additions & 1 deletion checkbox/lib/_checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
// SPDX-License-Identifier: Apache-2.0
//

@use 'sass:math';
// go/keep-sorted start
@use 'sass:map';
@use 'sass:math';
// go/keep-sorted end
// go/keep-sorted start
@use '../../focus/focus-ring';
@use '../../ripple/ripple';
@use '../../sass/theme';
@use '../../tokens';
// go/keep-sorted end

// Motion token values.
$_md-sys-motion: tokens.md-sys-motion-values();
Expand Down
2 changes: 2 additions & 0 deletions checkbox/lib/checkbox-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use './checkbox';
// go/keep-sorted end

@include checkbox.styles;
2 changes: 2 additions & 0 deletions checkbox/lib/forced-colors-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
// SPDX-License-Identifier: Apache-2.0
//

// go/keep-sorted start
@use './checkbox';
// go/keep-sorted end

@media (forced-colors: active) {
:host {
Expand Down
4 changes: 4 additions & 0 deletions chips/chip/lib/_assist-chip-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
* SPDX-License-Identifier: Apache-2.0
*/

// go/keep-sorted start
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use '../../../sass/resolvers';
@use '../../../sass/theme';
@use './chip-theme';
// go/keep-sorted end

$_light-theme: (
container-shape: null,
Expand Down
7 changes: 5 additions & 2 deletions chips/chip/lib/_chip-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
// stylelint-disable selector-class-pattern --
// Internal styling for Chip MDC component.

// go/keep-sorted start
@use 'sass:color';
@use 'sass:map';
@use 'sass:math';
@use 'sass:color';

// go/keep-sorted end
// go/keep-sorted start
@use '../../../elevation/lib/elevation';
@use '../../../ripple/ripple';
@use '../../../sass/dom';
Expand All @@ -20,6 +22,7 @@
@use '../../../sass/typography';
// TODO(b/240224981): Uncomment when styles are traslated to md3 shape.
// @use '../../../sass/shape';
// go/keep-sorted end

$height: 32px;
$minimum-height: 24px;
Expand Down
2 changes: 2 additions & 0 deletions chips/chip/lib/_chip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
// stylelint-disable selector-class-pattern --
// Internal styling for Chip MDC component.

// go/keep-sorted start
@use '../../../focus/focus-ring';
@use '../../../motion/animation';
// TODO(b/240224981): Uncomment when styles are translated to md3 ripple
// @use '../../../ripple/ripple-theme';
@use '../../../sass/dom';
@use './chip-theme';
// go/keep-sorted end

@mixin core-styles() {
@include without-ripple-styles();
Expand Down
Loading

0 comments on commit 6c2aef6

Please sign in to comment.