From 6c2aef6901218a0c3c98aa1974578fe8cebc30d3 Mon Sep 17 00:00:00 2001 From: Elizabeth Mitchell Date: Tue, 14 Feb 2023 11:09:50 -0800 Subject: [PATCH] chore(all): add keep-sorted comments to Sass imports PiperOrigin-RevId: 509583504 --- autocomplete/lib/_filled-autocomplete.scss | 8 ++++++-- autocomplete/lib/_outlined-autocomplete.scss | 8 ++++++-- .../autocomplete-list-styles.scss | 2 ++ .../autocomplete-surface-styles.scss | 2 ++ autocomplete/lib/filled-styles.scss | 2 ++ autocomplete/lib/outlined-styles.scss | 2 ++ autocomplete/lib/shared-styles.scss | 2 ++ badge/lib/_badge.scss | 4 ++++ badge/lib/badge-styles.scss | 2 ++ button/lib/_elevated-button.scss | 6 +++++- button/lib/_elevation.scss | 5 ++++- button/lib/_filled-button.scss | 6 +++++- button/lib/_outlined-button.scss | 6 +++++- button/lib/_shared.scss | 8 ++++++-- button/lib/_text-button.scss | 6 +++++- button/lib/_tonal-button.scss | 6 +++++- button/lib/elevated-styles.scss | 2 ++ button/lib/filled-styles.scss | 2 ++ button/lib/outlined-styles.scss | 2 ++ button/lib/shared-elevation-styles.scss | 2 ++ button/lib/shared-styles.scss | 2 ++ button/lib/text-styles.scss | 2 ++ button/lib/tonal-styles.scss | 2 ++ checkbox/lib/_checkbox.scss | 6 +++++- checkbox/lib/checkbox-styles.scss | 2 ++ checkbox/lib/forced-colors-styles.scss | 2 ++ chips/chip/lib/_assist-chip-theme.scss | 4 ++++ chips/chip/lib/_chip-theme.scss | 7 +++++-- chips/chip/lib/_chip.scss | 2 ++ chips/chip/lib/_filter-chip-theme.scss | 4 ++++ chips/chip/lib/_input-chip-theme.scss | 4 ++++ chips/chip/lib/_suggestion-chip-theme.scss | 4 ++++ chips/chipset/lib/_chip-set-theme.scss | 2 ++ chips/chipset/lib/_chip-set.scss | 2 ++ dialog/lib/_dialog.scss | 6 +++++- dialog/lib/_tokens.scss | 10 +++++++--- dialog/lib/dialog-styles.scss | 2 ++ divider/lib/_divider.scss | 2 ++ divider/lib/divider-styles.scss | 2 ++ elevation/lib/_elevation.scss | 4 ++++ elevation/lib/_md-comp-elevation.scss | 4 ++++ elevation/lib/elevation-styles.scss | 2 ++ fab/lib/_fab-extended.scss | 4 ++++ fab/lib/_fab.scss | 2 ++ fab/lib/_shared.scss | 4 ++++ fab/lib/fab-extended-styles.scss | 2 ++ fab/lib/fab-shared-styles.scss | 2 ++ fab/lib/fab-styles.scss | 2 ++ field/lib/_content.scss | 4 ++++ field/lib/_filled-field.scss | 4 ++++ field/lib/_label.scss | 2 ++ field/lib/_md-comp-filled-field.scss | 4 ++++ field/lib/_md-comp-outlined-field.scss | 4 ++++ field/lib/_outlined-field.scss | 6 +++++- field/lib/_shared.scss | 4 ++++ field/lib/_supporting-text.scss | 2 ++ focus/lib/_focus-ring.scss | 6 +++++- focus/lib/_md-comp-focus-ring.scss | 4 ++++ focus/lib/focus-ring-styles.scss | 2 ++ icon/lib/_icon.scss | 2 ++ icon/lib/icon-styles.scss | 2 ++ iconbutton/lib/_filled-icon-button.scss | 6 +++++- iconbutton/lib/_filled-tonal-icon-button.scss | 6 +++++- iconbutton/lib/_outlined-icon-button.scss | 8 ++++++-- iconbutton/lib/_shared.scss | 10 +++++++--- iconbutton/lib/_standard-icon-button.scss | 6 +++++- iconbutton/lib/filled-styles.scss | 2 ++ iconbutton/lib/filled-tonal-styles.scss | 2 ++ iconbutton/lib/outlined-styles.scss | 2 ++ iconbutton/lib/shared-styles.scss | 2 ++ iconbutton/lib/standard-styles.scss | 2 ++ list/lib/_list.scss | 8 ++++++-- list/lib/avatar/_list-item-avatar.scss | 2 ++ list/lib/avatar/list-item-avatar-styles.scss | 2 ++ list/lib/icon/_list-item-icon.scss | 4 ++++ list/lib/icon/list-item-icon-styles.scss | 2 ++ list/lib/image/_list-item-image.scss | 6 +++++- list/lib/image/list-item-image-styles.scss | 2 ++ list/lib/list-styles.scss | 2 ++ list/lib/listitem/_list-item.scss | 10 +++++++--- list/lib/listitem/list-item-private-styles.scss | 2 ++ list/lib/listitem/list-item-styles.scss | 2 ++ list/lib/video/_list-item-video.scss | 6 +++++- list/lib/video/list-item-video-styles.scss | 2 ++ menu/lib/_menu.scss | 11 +++++++---- menu/lib/menu-styles.scss | 2 ++ menu/lib/menuitem/_menu-item.scss | 15 +++++++++------ menu/lib/menuitem/menu-item-private-styles.scss | 2 ++ menu/lib/menuitem/menu-item-styles.scss | 2 ++ menusurface/lib/_md-comp-menu-surface.scss | 4 ++++ menusurface/lib/_menu-surface.scss | 4 ++++ menusurface/lib/menu-surface-styles.scss | 2 ++ navigationbar/lib/_navigation-bar.scss | 2 ++ navigationbar/lib/navigation-bar-styles.scss | 2 ++ .../lib/_navigation-drawer-modal.scss | 6 +++++- navigationdrawer/lib/_navigation-drawer.scss | 6 ++++-- navigationdrawer/lib/_shared.scss | 5 ++++- .../lib/navigation-drawer-modal-styles.scss | 2 ++ .../lib/navigation-drawer-styles.scss | 2 ++ navigationdrawer/lib/shared-styles.scss | 2 ++ navigationtab/lib/_navigation-tab.scss | 7 +++++-- navigationtab/lib/navigation-tab-styles.scss | 2 ++ radio/lib/_radio.scss | 4 ++++ radio/lib/forced-colors-styles.scss | 2 ++ radio/lib/radio-styles.scss | 2 ++ ripple/lib/_md-comp-ripple.scss | 4 ++++ ripple/lib/_ripple.scss | 4 ++++ ripple/lib/ripple-styles.scss | 2 ++ sass/_assert.scss | 2 ++ sass/_color-scheme.scss | 4 ++++ sass/_color.scss | 4 ++++ sass/_elevation.scss | 4 ++++ sass/_feature-flags.scss | 2 ++ sass/_map-ext.scss | 2 ++ sass/_resolvers.scss | 4 ++++ sass/_shape.scss | 4 ++++ sass/_string-ext.scss | 2 ++ sass/_theme.scss | 4 ++++ sass/_typography.scss | 4 ++++ sass/_var.scss | 4 ++++ sass/test/_color-scheme.test.scss | 4 ++++ sass/test/_color.test.scss | 4 ++++ sass/test/_map-ext.test.scss | 6 +++++- sass/test/_shape.test.scss | 6 +++++- sass/test/_string-ext.test.scss | 8 ++++++-- sass/test/test.scss | 2 ++ .../lib/_outlined-segmented-button.scss | 4 ++++ segmentedbutton/lib/_shared.scss | 4 ++++ segmentedbutton/lib/outlined-styles.scss | 2 ++ segmentedbutton/lib/shared-styles.scss | 2 ++ .../lib/_outlined-segmented-button-set.scss | 4 +++- segmentedbuttonset/lib/outlined-styles.scss | 2 ++ segmentedbuttonset/lib/shared-styles.scss | 2 ++ switch/lib/_handle.scss | 6 +++++- switch/lib/_icon.scss | 4 ++++ switch/lib/_switch.scss | 7 +++++-- switch/lib/_track.scss | 2 ++ switch/lib/switch-styles.scss | 2 ++ testing/table/lib/_test-table-theme.scss | 5 ++++- testing/table/lib/_test-table.scss | 2 ++ testing/table/lib/test-table-styles.scss | 4 +++- textfield/lib/_filled-text-field.scss | 4 ++++ textfield/lib/_input.scss | 2 ++ textfield/lib/_outlined-text-field.scss | 4 ++++ textfield/lib/_shared.scss | 4 ++++ textfield/lib/filled-forced-colors-styles.scss | 2 ++ textfield/lib/filled-styles.scss | 2 ++ textfield/lib/outlined-forced-colors-styles.scss | 2 ++ textfield/lib/outlined-styles.scss | 2 ++ textfield/lib/shared-styles.scss | 2 ++ 150 files changed, 498 insertions(+), 62 deletions(-) diff --git a/autocomplete/lib/_filled-autocomplete.scss b/autocomplete/lib/_filled-autocomplete.scss index ebe91d2a12..c9999e51a4 100644 --- a/autocomplete/lib/_filled-autocomplete.scss +++ b/autocomplete/lib/_filled-autocomplete.scss @@ -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( diff --git a/autocomplete/lib/_outlined-autocomplete.scss b/autocomplete/lib/_outlined-autocomplete.scss index 463b7f6da7..0abd59567c 100644 --- a/autocomplete/lib/_outlined-autocomplete.scss +++ b/autocomplete/lib/_outlined-autocomplete.scss @@ -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( diff --git a/autocomplete/lib/autocompletelist/autocomplete-list-styles.scss b/autocomplete/lib/autocompletelist/autocomplete-list-styles.scss index 5b14472841..e1e371b3d4 100644 --- a/autocomplete/lib/autocompletelist/autocomplete-list-styles.scss +++ b/autocomplete/lib/autocompletelist/autocomplete-list-styles.scss @@ -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; diff --git a/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.scss b/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.scss index df32f4e368..a38643621a 100644 --- a/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.scss +++ b/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.scss @@ -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; diff --git a/autocomplete/lib/filled-styles.scss b/autocomplete/lib/filled-styles.scss index c67b48c150..0731df9f57 100644 --- a/autocomplete/lib/filled-styles.scss +++ b/autocomplete/lib/filled-styles.scss @@ -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; diff --git a/autocomplete/lib/outlined-styles.scss b/autocomplete/lib/outlined-styles.scss index 601a971aac..150aec7f58 100644 --- a/autocomplete/lib/outlined-styles.scss +++ b/autocomplete/lib/outlined-styles.scss @@ -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; diff --git a/autocomplete/lib/shared-styles.scss b/autocomplete/lib/shared-styles.scss index c4f743c28c..01bdeda127 100644 --- a/autocomplete/lib/shared-styles.scss +++ b/autocomplete/lib/shared-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './shared'; +// go/keep-sorted end @include shared.styles; diff --git a/badge/lib/_badge.scss b/badge/lib/_badge.scss index 56f905577b..f487fc694d 100644 --- a/badge/lib/_badge.scss +++ b/badge/lib/_badge.scss @@ -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'; diff --git a/badge/lib/badge-styles.scss b/badge/lib/badge-styles.scss index 7ffed7cc56..bc29094a37 100644 --- a/badge/lib/badge-styles.scss +++ b/badge/lib/badge-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './badge'; +// go/keep-sorted end @include badge.styles; diff --git a/button/lib/_elevated-button.scss b/button/lib/_elevated-button.scss index a9badc422c..a85f0c32de 100644 --- a/button/lib/_elevated-button.scss +++ b/button/lib/_elevated-button.scss @@ -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'; diff --git a/button/lib/_elevation.scss b/button/lib/_elevation.scss index 4ff31b7673..999722d2a3 100644 --- a/button/lib/_elevation.scss +++ b/button/lib/_elevation.scss @@ -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 { diff --git a/button/lib/_filled-button.scss b/button/lib/_filled-button.scss index cf7ef27963..5a2eff0217 100644 --- a/button/lib/_filled-button.scss +++ b/button/lib/_filled-button.scss @@ -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'; diff --git a/button/lib/_outlined-button.scss b/button/lib/_outlined-button.scss index f29ba9bb15..e762be49c7 100644 --- a/button/lib/_outlined-button.scss +++ b/button/lib/_outlined-button.scss @@ -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. diff --git a/button/lib/_shared.scss b/button/lib/_shared.scss index 02fc9f52a9..dd64c75a0d 100644 --- a/button/lib/_shared.scss +++ b/button/lib/_shared.scss @@ -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 { diff --git a/button/lib/_text-button.scss b/button/lib/_text-button.scss index f24012192c..ba78133669 100644 --- a/button/lib/_text-button.scss +++ b/button/lib/_text-button.scss @@ -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'; diff --git a/button/lib/_tonal-button.scss b/button/lib/_tonal-button.scss index e776e35772..71a3c6c423 100644 --- a/button/lib/_tonal-button.scss +++ b/button/lib/_tonal-button.scss @@ -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'; diff --git a/button/lib/elevated-styles.scss b/button/lib/elevated-styles.scss index a26037fe41..ac650d93fe 100644 --- a/button/lib/elevated-styles.scss +++ b/button/lib/elevated-styles.scss @@ -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; diff --git a/button/lib/filled-styles.scss b/button/lib/filled-styles.scss index faa4e5b2ca..7c49605b6d 100644 --- a/button/lib/filled-styles.scss +++ b/button/lib/filled-styles.scss @@ -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; diff --git a/button/lib/outlined-styles.scss b/button/lib/outlined-styles.scss index d1c0d2c38f..e6b032a12d 100644 --- a/button/lib/outlined-styles.scss +++ b/button/lib/outlined-styles.scss @@ -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; diff --git a/button/lib/shared-elevation-styles.scss b/button/lib/shared-elevation-styles.scss index 2b4471ba26..35b38f6c4f 100644 --- a/button/lib/shared-elevation-styles.scss +++ b/button/lib/shared-elevation-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './elevation'; +// go/keep-sorted end @include elevation.styles; diff --git a/button/lib/shared-styles.scss b/button/lib/shared-styles.scss index 87c4b1f18d..bc31033471 100644 --- a/button/lib/shared-styles.scss +++ b/button/lib/shared-styles.scss @@ -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; diff --git a/button/lib/text-styles.scss b/button/lib/text-styles.scss index 16ee88cec9..e9d3d6dc4e 100644 --- a/button/lib/text-styles.scss +++ b/button/lib/text-styles.scss @@ -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; diff --git a/button/lib/tonal-styles.scss b/button/lib/tonal-styles.scss index 2574b74062..0a55cf76f9 100644 --- a/button/lib/tonal-styles.scss +++ b/button/lib/tonal-styles.scss @@ -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; diff --git a/checkbox/lib/_checkbox.scss b/checkbox/lib/_checkbox.scss index fb8d075ed9..920c6a5cae 100644 --- a/checkbox/lib/_checkbox.scss +++ b/checkbox/lib/_checkbox.scss @@ -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(); diff --git a/checkbox/lib/checkbox-styles.scss b/checkbox/lib/checkbox-styles.scss index f58dc44451..40de3dafab 100644 --- a/checkbox/lib/checkbox-styles.scss +++ b/checkbox/lib/checkbox-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './checkbox'; +// go/keep-sorted end @include checkbox.styles; diff --git a/checkbox/lib/forced-colors-styles.scss b/checkbox/lib/forced-colors-styles.scss index bf1d597e23..f5cb5084c2 100644 --- a/checkbox/lib/forced-colors-styles.scss +++ b/checkbox/lib/forced-colors-styles.scss @@ -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 { diff --git a/chips/chip/lib/_assist-chip-theme.scss b/chips/chip/lib/_assist-chip-theme.scss index 6c5630834f..fce2cc2c36 100644 --- a/chips/chip/lib/_assist-chip-theme.scss +++ b/chips/chip/lib/_assist-chip-theme.scss @@ -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, diff --git a/chips/chip/lib/_chip-theme.scss b/chips/chip/lib/_chip-theme.scss index b0ab1786e0..1992023c15 100644 --- a/chips/chip/lib/_chip-theme.scss +++ b/chips/chip/lib/_chip-theme.scss @@ -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'; @@ -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; diff --git a/chips/chip/lib/_chip.scss b/chips/chip/lib/_chip.scss index 3de6085642..7c8bf1bdb6 100644 --- a/chips/chip/lib/_chip.scss +++ b/chips/chip/lib/_chip.scss @@ -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(); diff --git a/chips/chip/lib/_filter-chip-theme.scss b/chips/chip/lib/_filter-chip-theme.scss index 7f90129ab6..a8e8ac3c7d 100644 --- a/chips/chip/lib/_filter-chip-theme.scss +++ b/chips/chip/lib/_filter-chip-theme.scss @@ -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, diff --git a/chips/chip/lib/_input-chip-theme.scss b/chips/chip/lib/_input-chip-theme.scss index 04d6af980a..6b57462980 100644 --- a/chips/chip/lib/_input-chip-theme.scss +++ b/chips/chip/lib/_input-chip-theme.scss @@ -4,11 +4,15 @@ * SPDX-License-Identifier: Apache-2.0 */ +// go/keep-sorted start @use 'sass:map'; +// go/keep-sorted end +// go/keep-sorted start @use '../../../elevation/lib/elevation'; @use '../../../sass/resolvers'; @use '../../../sass/theme'; @use './chip-theme'; +// go/keep-sorted end $_light-theme: ( container-shape: null, diff --git a/chips/chip/lib/_suggestion-chip-theme.scss b/chips/chip/lib/_suggestion-chip-theme.scss index e616c5e47b..5e6bf73781 100644 --- a/chips/chip/lib/_suggestion-chip-theme.scss +++ b/chips/chip/lib/_suggestion-chip-theme.scss @@ -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, diff --git a/chips/chipset/lib/_chip-set-theme.scss b/chips/chipset/lib/_chip-set-theme.scss index d507b57ca1..76c9b9ffef 100644 --- a/chips/chipset/lib/_chip-set-theme.scss +++ b/chips/chipset/lib/_chip-set-theme.scss @@ -4,7 +4,9 @@ * SPDX-License-Identifier: Apache-2.0 */ +// go/keep-sorted start @use 'sass:math'; +// go/keep-sorted end // stylelint-disable selector-class-pattern -- MDC internal usage. diff --git a/chips/chipset/lib/_chip-set.scss b/chips/chipset/lib/_chip-set.scss index 15579235ae..7e9047fa11 100644 --- a/chips/chipset/lib/_chip-set.scss +++ b/chips/chipset/lib/_chip-set.scss @@ -4,7 +4,9 @@ * SPDX-License-Identifier: Apache-2.0 */ +// go/keep-sorted start @use './chip-set-theme'; +// go/keep-sorted end // stylelint-disable selector-class-pattern -- MDC internal usage. diff --git a/dialog/lib/_dialog.scss b/dialog/lib/_dialog.scss index a78b62d122..e7334fc7c4 100644 --- a/dialog/lib/_dialog.scss +++ b/dialog/lib/_dialog.scss @@ -5,13 +5,17 @@ // PUBLIC PROPERTIES +// go/keep-sorted start @use 'sass:map'; -@use './tokens'; +// go/keep-sorted end +// go/keep-sorted start @use '../../sass/color'; @use '../../sass/resolvers'; @use '../../sass/shape'; @use '../../sass/theme'; @use '../../sass/var'; +@use './tokens'; +// go/keep-sorted end @mixin styles() { $tokens: tokens.md-comp-dialog-values(); diff --git a/dialog/lib/_tokens.scss b/dialog/lib/_tokens.scss index 12dc89cb5e..d5bacb561a 100644 --- a/dialog/lib/_tokens.scss +++ b/dialog/lib/_tokens.scss @@ -3,14 +3,18 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; @use 'sass:string'; +// go/keep-sorted end +// go/keep-sorted start @use '../../sass/color'; @use '../../sass/shape'; +@use '../../sass/string-ext'; @use '../../sass/theme'; @use '../../sass/var'; @use '../../tokens'; -@use '../../sass/string-ext'; +// go/keep-sorted end $_md-sys-motion: tokens.md-sys-motion-values(); $_md-sys-color: tokens.md-sys-color-values-light(); @@ -76,8 +80,8 @@ $_fullscreen-tokens: ( } /** - * Extended token set for dialog. Note, currently ignoring tokens for - * `action-*-label-text` and `action-*-state-layer` since actions are + * Extended token set for dialog. Note, currently ignoring tokens for + * `action-*-label-text` and `action-*-state-layer` since actions are * spec'd as standard text buttons. */ @function md-comp-dialog-values() { diff --git a/dialog/lib/dialog-styles.scss b/dialog/lib/dialog-styles.scss index 7a3b477c7e..01fe4c314a 100644 --- a/dialog/lib/dialog-styles.scss +++ b/dialog/lib/dialog-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './dialog'; +// go/keep-sorted end @include dialog.styles; diff --git a/divider/lib/_divider.scss b/divider/lib/_divider.scss index ff2551fed2..19fa088a94 100644 --- a/divider/lib/_divider.scss +++ b/divider/lib/_divider.scss @@ -3,8 +3,10 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use '../../sass/theme'; @use '../../tokens'; +// go/keep-sorted end @mixin theme($tokens) { $tokens: theme.validate-theme(tokens.md-comp-divider-values(), $tokens); diff --git a/divider/lib/divider-styles.scss b/divider/lib/divider-styles.scss index f26239b0ce..366877a8df 100644 --- a/divider/lib/divider-styles.scss +++ b/divider/lib/divider-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './divider'; +// go/keep-sorted end @include divider.styles; diff --git a/elevation/lib/_elevation.scss b/elevation/lib/_elevation.scss index 99905771f4..2a9548aea8 100644 --- a/elevation/lib/_elevation.scss +++ b/elevation/lib/_elevation.scss @@ -3,11 +3,15 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:list'; @use 'sass:map'; +// go/keep-sorted end +// go/keep-sorted start @use '../../sass/theme'; @use '../../sass/var'; @use './md-comp-elevation'; +// go/keep-sorted end // TODO(b/261603279): remove once tokens are updated to use level instead of dp @function resolve-tokens($tokens, $elevation-keys...) { diff --git a/elevation/lib/_md-comp-elevation.scss b/elevation/lib/_md-comp-elevation.scss index 86b1491d86..4f33f204f3 100644 --- a/elevation/lib/_md-comp-elevation.scss +++ b/elevation/lib/_md-comp-elevation.scss @@ -3,8 +3,12 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; +// go/keep-sorted end +// go/keep-sorted start @use '../../tokens'; +// go/keep-sorted end $_default-deps: ( md-sys-color: tokens.md-sys-color-values-light(), diff --git a/elevation/lib/elevation-styles.scss b/elevation/lib/elevation-styles.scss index 07e8a47e4d..3041f20bac 100644 --- a/elevation/lib/elevation-styles.scss +++ b/elevation/lib/elevation-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './elevation'; +// go/keep-sorted end @include elevation.styles; diff --git a/fab/lib/_fab-extended.scss b/fab/lib/_fab-extended.scss index 4a1e3fcc48..6899dd2287 100644 --- a/fab/lib/_fab-extended.scss +++ b/fab/lib/_fab-extended.scss @@ -6,11 +6,15 @@ // 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/resolvers'; @use '../../sass/theme'; @use '../../tokens'; @use './shared'; +// go/keep-sorted end @mixin theme($tokens) { $tokens: theme.validate-theme( diff --git a/fab/lib/_fab.scss b/fab/lib/_fab.scss index 3640fd1c7e..cf216b53b3 100644 --- a/fab/lib/_fab.scss +++ b/fab/lib/_fab.scss @@ -6,9 +6,11 @@ // stylelint-disable selector-class-pattern -- // Selector '.md3-*' should only be used in this project. +// go/keep-sorted start @use '../../sass/theme'; @use '../../tokens'; @use './shared'; +// go/keep-sorted end @mixin theme($tokens) { $tokens: theme.validate-theme(tokens.md-comp-fab-surface-values(), $tokens); diff --git a/fab/lib/_shared.scss b/fab/lib/_shared.scss index 4f5963160e..a7cf65e945 100644 --- a/fab/lib/_shared.scss +++ b/fab/lib/_shared.scss @@ -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'; @use 'sass:meta'; +// go/keep-sorted end +// go/keep-sorted start @use '../../elevation/lib/elevation'; @use '../../focus/focus-ring'; @use '../../ripple/ripple'; @use '../../sass/theme'; @use '../../sass/touch-target'; +// go/keep-sorted end @mixin styles() { :host { diff --git a/fab/lib/fab-extended-styles.scss b/fab/lib/fab-extended-styles.scss index 1a66e5a5d2..9f5b483e4d 100644 --- a/fab/lib/fab-extended-styles.scss +++ b/fab/lib/fab-extended-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './fab-extended'; +// go/keep-sorted end @include fab-extended.styles; diff --git a/fab/lib/fab-shared-styles.scss b/fab/lib/fab-shared-styles.scss index c4f743c28c..01bdeda127 100644 --- a/fab/lib/fab-shared-styles.scss +++ b/fab/lib/fab-shared-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './shared'; +// go/keep-sorted end @include shared.styles; diff --git a/fab/lib/fab-styles.scss b/fab/lib/fab-styles.scss index c93527c098..b3c20403f0 100644 --- a/fab/lib/fab-styles.scss +++ b/fab/lib/fab-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './fab'; +// go/keep-sorted end @include fab.styles; diff --git a/field/lib/_content.scss b/field/lib/_content.scss index 0afa7e7d56..ff12db3cc4 100644 --- a/field/lib/_content.scss +++ b/field/lib/_content.scss @@ -6,8 +6,12 @@ // stylelint-disable selector-class-pattern -- // Selector '.md3-*' should only be used in this project. +// go/keep-sorted start @use 'sass:math'; +// go/keep-sorted end +// go/keep-sorted start @use '../../motion/animation'; +// go/keep-sorted end // Duration of the label animation. $_label-duration: 150ms; diff --git a/field/lib/_filled-field.scss b/field/lib/_filled-field.scss index 75d5409af1..45c06cac76 100644 --- a/field/lib/_filled-field.scss +++ b/field/lib/_filled-field.scss @@ -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 '../../motion/animation'; @use '../../sass/resolvers'; @use '../../sass/shape'; @use '../../sass/theme'; @use './md-comp-filled-field'; @use './shared'; +// go/keep-sorted end $_animation-duration: 150ms; diff --git a/field/lib/_label.scss b/field/lib/_label.scss index 3560c74096..fd0c3b6429 100644 --- a/field/lib/_label.scss +++ b/field/lib/_label.scss @@ -3,7 +3,9 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use '../../sass/typography'; +// go/keep-sorted end // stylelint-disable selector-class-pattern -- // Selector '.md3-*' should only be used in this project. diff --git a/field/lib/_md-comp-filled-field.scss b/field/lib/_md-comp-filled-field.scss index f05acc9eb7..4ed7652d0a 100644 --- a/field/lib/_md-comp-filled-field.scss +++ b/field/lib/_md-comp-filled-field.scss @@ -3,8 +3,12 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; +// go/keep-sorted end +// go/keep-sorted start @use '../../tokens'; +// go/keep-sorted end $_default-deps: ( md-sys-color: tokens.md-sys-color-values-light(), diff --git a/field/lib/_md-comp-outlined-field.scss b/field/lib/_md-comp-outlined-field.scss index 69700c2a19..ba85733e6b 100644 --- a/field/lib/_md-comp-outlined-field.scss +++ b/field/lib/_md-comp-outlined-field.scss @@ -3,8 +3,12 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; +// go/keep-sorted end +// go/keep-sorted start @use '../../tokens'; +// go/keep-sorted end $_default-deps: ( md-sys-color: tokens.md-sys-color-values-light(), diff --git a/field/lib/_outlined-field.scss b/field/lib/_outlined-field.scss index 7bf3fea99d..3d4da7cc70 100644 --- a/field/lib/_outlined-field.scss +++ b/field/lib/_outlined-field.scss @@ -6,12 +6,16 @@ // 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 '../../motion/animation'; -@use '../../sass/theme'; @use '../../sass/shape'; +@use '../../sass/theme'; @use './md-comp-outlined-field'; @use './shared'; +// go/keep-sorted end $_animation-duration: 150ms; diff --git a/field/lib/_shared.scss b/field/lib/_shared.scss index d5e214a232..ef4a45cc5e 100644 --- a/field/lib/_shared.scss +++ b/field/lib/_shared.scss @@ -6,12 +6,16 @@ // 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/resolvers'; @use '../../sass/typography'; @use './content'; @use './label'; @use './supporting-text'; +// go/keep-sorted end @mixin styles() { :host { diff --git a/field/lib/_supporting-text.scss b/field/lib/_supporting-text.scss index d6f22b1f5d..c11c875d8c 100644 --- a/field/lib/_supporting-text.scss +++ b/field/lib/_supporting-text.scss @@ -6,7 +6,9 @@ // stylelint-disable selector-class-pattern -- // Selector '.md3-*' should only be used in this project. +// go/keep-sorted start @use '../../sass/typography'; +// go/keep-sorted end @mixin styles() { .md3-field__supporting-text { diff --git a/focus/lib/_focus-ring.scss b/focus/lib/_focus-ring.scss index b273302805..e7118ccc64 100644 --- a/focus/lib/_focus-ring.scss +++ b/focus/lib/_focus-ring.scss @@ -3,10 +3,14 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; -@use '../../sass/theme'; +// go/keep-sorted end +// go/keep-sorted start @use '../../sass/shape'; +@use '../../sass/theme'; @use './md-comp-focus-ring'; +// go/keep-sorted end $_custom-property-prefix: 'focus-ring'; diff --git a/focus/lib/_md-comp-focus-ring.scss b/focus/lib/_md-comp-focus-ring.scss index cf28c5edac..2fecf2c582 100644 --- a/focus/lib/_md-comp-focus-ring.scss +++ b/focus/lib/_md-comp-focus-ring.scss @@ -3,8 +3,12 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; +// go/keep-sorted end +// go/keep-sorted start @use '../../tokens'; +// go/keep-sorted end $_default: ( md-sys-color: tokens.md-sys-color-values-light(), diff --git a/focus/lib/focus-ring-styles.scss b/focus/lib/focus-ring-styles.scss index 93b7872d14..e7d7220084 100644 --- a/focus/lib/focus-ring-styles.scss +++ b/focus/lib/focus-ring-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './focus-ring'; +// go/keep-sorted end @include focus-ring.styles; diff --git a/icon/lib/_icon.scss b/icon/lib/_icon.scss index 9d09394381..4b64f9820c 100644 --- a/icon/lib/_icon.scss +++ b/icon/lib/_icon.scss @@ -3,8 +3,10 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use '../../sass/theme'; @use './md-comp-icon'; +// go/keep-sorted end $_custom-property-prefix: 'icon'; diff --git a/icon/lib/icon-styles.scss b/icon/lib/icon-styles.scss index c07b122505..1555b757ff 100644 --- a/icon/lib/icon-styles.scss +++ b/icon/lib/icon-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './icon'; +// go/keep-sorted end @include icon.styles; diff --git a/iconbutton/lib/_filled-icon-button.scss b/iconbutton/lib/_filled-icon-button.scss index e5cf79b6b3..2b74953fc4 100644 --- a/iconbutton/lib/_filled-icon-button.scss +++ b/iconbutton/lib/_filled-icon-button.scss @@ -6,12 +6,16 @@ // 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/theme'; -@use '../../focus/focus-ring'; @use '../../tokens'; @use './shared'; +// go/keep-sorted end $_custom-property-prefix: 'filled-icon-button'; diff --git a/iconbutton/lib/_filled-tonal-icon-button.scss b/iconbutton/lib/_filled-tonal-icon-button.scss index f8505068d6..fb89faca83 100644 --- a/iconbutton/lib/_filled-tonal-icon-button.scss +++ b/iconbutton/lib/_filled-tonal-icon-button.scss @@ -6,12 +6,16 @@ // stylelint-disable selector-class-pattern -- // Selector '.md3-*' should only be used in this project. +// go/keep-sorted start @use 'sass:map'; -@use '../../ripple/ripple'; +// go/keep-sorted end +// go/keep-sorted start @use '../../focus/focus-ring'; +@use '../../ripple/ripple'; @use '../../sass/theme'; @use '../../tokens'; @use './shared'; +// go/keep-sorted end $_custom-property-prefix: 'filled-tonal-icon-button'; diff --git a/iconbutton/lib/_outlined-icon-button.scss b/iconbutton/lib/_outlined-icon-button.scss index 6926a814e4..a8e5b107ab 100644 --- a/iconbutton/lib/_outlined-icon-button.scss +++ b/iconbutton/lib/_outlined-icon-button.scss @@ -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 '../../focus/focus-ring'; @use '../../ripple/ripple'; -@use '../../sass/resolvers'; @use '../../sass/color'; +@use '../../sass/resolvers'; @use '../../sass/theme'; @use '../../tokens'; -@use '../../focus/focus-ring'; @use './shared'; +// go/keep-sorted end $_custom-property-prefix: 'outlined-icon-button'; diff --git a/iconbutton/lib/_shared.scss b/iconbutton/lib/_shared.scss index dc59734a20..077503c807 100644 --- a/iconbutton/lib/_shared.scss +++ b/iconbutton/lib/_shared.scss @@ -9,13 +9,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 '../../icon/icon'; @use '../../sass/color'; -@use '../../sass/touch-target'; -@use '../../sass/shape'; @use '../../sass/resolvers'; +@use '../../sass/shape'; +@use '../../sass/touch-target'; @use '../../tokens'; -@use '../../icon/icon'; +// go/keep-sorted end @mixin styles() { :host { diff --git a/iconbutton/lib/_standard-icon-button.scss b/iconbutton/lib/_standard-icon-button.scss index d70ef5cb32..1e9b95f478 100644 --- a/iconbutton/lib/_standard-icon-button.scss +++ b/iconbutton/lib/_standard-icon-button.scss @@ -6,12 +6,16 @@ // 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/theme'; -@use '../../focus/focus-ring'; @use '../../tokens'; @use './shared'; +// go/keep-sorted end $_custom-property-prefix: 'icon-button'; $_shape-property: 'state-layer-shape'; diff --git a/iconbutton/lib/filled-styles.scss b/iconbutton/lib/filled-styles.scss index 5a3435984f..de8b735aeb 100644 --- a/iconbutton/lib/filled-styles.scss +++ b/iconbutton/lib/filled-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './filled-icon-button'; +// go/keep-sorted end @include filled-icon-button.styles; diff --git a/iconbutton/lib/filled-tonal-styles.scss b/iconbutton/lib/filled-tonal-styles.scss index 33c1431dad..d5f674756a 100644 --- a/iconbutton/lib/filled-tonal-styles.scss +++ b/iconbutton/lib/filled-tonal-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './filled-tonal-icon-button'; +// go/keep-sorted end @include filled-tonal-icon-button.styles; diff --git a/iconbutton/lib/outlined-styles.scss b/iconbutton/lib/outlined-styles.scss index 756c72205c..7ec6fd3474 100644 --- a/iconbutton/lib/outlined-styles.scss +++ b/iconbutton/lib/outlined-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './outlined-icon-button'; +// go/keep-sorted end @include outlined-icon-button.styles; diff --git a/iconbutton/lib/shared-styles.scss b/iconbutton/lib/shared-styles.scss index c4f743c28c..01bdeda127 100644 --- a/iconbutton/lib/shared-styles.scss +++ b/iconbutton/lib/shared-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './shared'; +// go/keep-sorted end @include shared.styles; diff --git a/iconbutton/lib/standard-styles.scss b/iconbutton/lib/standard-styles.scss index a137824418..c242ac8b57 100644 --- a/iconbutton/lib/standard-styles.scss +++ b/iconbutton/lib/standard-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './standard-icon-button'; +// go/keep-sorted end @include standard-icon-button.styles; diff --git a/list/lib/_list.scss b/list/lib/_list.scss index aff98c57bb..5b8e4c7df3 100644 --- a/list/lib/_list.scss +++ b/list/lib/_list.scss @@ -6,12 +6,16 @@ // stylelint-disable selector-class-pattern -- // Selector '.md3-*' should only be used in this project. +// go/keep-sorted start @use 'sass:map'; @use 'sass:string'; -@use './listitem/list-item'; +// go/keep-sorted end +// go/keep-sorted start +@use '../../elevation/lib/elevation'; @use '../../sass/theme'; @use '../../tokens'; -@use '../../elevation/lib/elevation'; +@use './listitem/list-item'; +// go/keep-sorted end @mixin theme($tokens) { $reference: resolve-tokens(tokens.md-comp-list-values()); diff --git a/list/lib/avatar/_list-item-avatar.scss b/list/lib/avatar/_list-item-avatar.scss index 36dbfd2c52..f7bf1de1d6 100644 --- a/list/lib/avatar/_list-item-avatar.scss +++ b/list/lib/avatar/_list-item-avatar.scss @@ -6,9 +6,11 @@ // stylelint-disable selector-class-pattern -- // Selector '.md3-*' should only be used in this project. +// go/keep-sorted start @use '../../../sass/map-ext'; @use '../../../sass/theme'; @use '../../../tokens'; +// go/keep-sorted end @mixin styles() { $tokens: map-ext.pick( diff --git a/list/lib/avatar/list-item-avatar-styles.scss b/list/lib/avatar/list-item-avatar-styles.scss index f844d543da..08eaac8f2b 100644 --- a/list/lib/avatar/list-item-avatar-styles.scss +++ b/list/lib/avatar/list-item-avatar-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './list-item-avatar'; +// go/keep-sorted end @include list-item-avatar.styles; diff --git a/list/lib/icon/_list-item-icon.scss b/list/lib/icon/_list-item-icon.scss index 55e6c7d20e..14d4dbe5cc 100644 --- a/list/lib/icon/_list-item-icon.scss +++ b/list/lib/icon/_list-item-icon.scss @@ -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/map-ext'; @use '../../../sass/theme'; +// go/keep-sorted end $_custom-property-prefix: 'list-item-icon'; diff --git a/list/lib/icon/list-item-icon-styles.scss b/list/lib/icon/list-item-icon-styles.scss index b7630e1f92..9567639f21 100644 --- a/list/lib/icon/list-item-icon-styles.scss +++ b/list/lib/icon/list-item-icon-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './list-item-icon'; +// go/keep-sorted end @include list-item-icon.styles; diff --git a/list/lib/image/_list-item-image.scss b/list/lib/image/_list-item-image.scss index 52c2c9792f..022dc2f360 100644 --- a/list/lib/image/_list-item-image.scss +++ b/list/lib/image/_list-item-image.scss @@ -6,10 +6,14 @@ // stylelint-disable selector-class-pattern -- // Selector '.md3-*' should only be used in this project. +// go/keep-sorted start @use 'sass:map'; -@use '../../../sass/theme'; +// go/keep-sorted end +// go/keep-sorted start @use '../../../sass/map-ext'; +@use '../../../sass/theme'; @use '../../../tokens'; +// go/keep-sorted end $_custom-property-prefix: 'list-item-image'; diff --git a/list/lib/image/list-item-image-styles.scss b/list/lib/image/list-item-image-styles.scss index 4161b77d43..d2c1f148ad 100644 --- a/list/lib/image/list-item-image-styles.scss +++ b/list/lib/image/list-item-image-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './list-item-image'; +// go/keep-sorted end @include list-item-image.styles; diff --git a/list/lib/list-styles.scss b/list/lib/list-styles.scss index 88cde10f0a..ee8b9661e7 100644 --- a/list/lib/list-styles.scss +++ b/list/lib/list-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './list'; +// go/keep-sorted end @include list.styles; diff --git a/list/lib/listitem/_list-item.scss b/list/lib/listitem/_list-item.scss index d0c9ec1959..8dd6af0fdb 100644 --- a/list/lib/listitem/_list-item.scss +++ b/list/lib/listitem/_list-item.scss @@ -3,16 +3,20 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; @use 'sass:string'; +// go/keep-sorted end +// go/keep-sorted start @use '../../../focus/focus-ring'; -@use '../../../sass/theme'; +@use '../../../ripple/ripple'; @use '../../../sass/map-ext'; +@use '../../../sass/theme'; +@use '../../../tokens'; @use '../icon/list-item-icon'; @use '../image/list-item-image'; @use '../video/list-item-video'; -@use '../../../ripple/ripple'; -@use '../../../tokens'; +// go/keep-sorted end @mixin theme($tokens) { $tokens: theme.validate-theme(tokens.md-comp-list-values(), $tokens); diff --git a/list/lib/listitem/list-item-private-styles.scss b/list/lib/listitem/list-item-private-styles.scss index c8cb9ccb25..4f08f3d209 100644 --- a/list/lib/listitem/list-item-private-styles.scss +++ b/list/lib/listitem/list-item-private-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './list-item'; +// go/keep-sorted end @include list-item.private-props; diff --git a/list/lib/listitem/list-item-styles.scss b/list/lib/listitem/list-item-styles.scss index 04f59c04ad..4b06977a91 100644 --- a/list/lib/listitem/list-item-styles.scss +++ b/list/lib/listitem/list-item-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './list-item'; +// go/keep-sorted end @include list-item.styles; diff --git a/list/lib/video/_list-item-video.scss b/list/lib/video/_list-item-video.scss index 9980fa7270..247cfe7bc8 100644 --- a/list/lib/video/_list-item-video.scss +++ b/list/lib/video/_list-item-video.scss @@ -6,10 +6,14 @@ // stylelint-disable selector-class-pattern -- // Selector '.md3-*' should only be used in this project. +// go/keep-sorted start @use 'sass:map'; -@use '../../../sass/theme'; +// go/keep-sorted end +// go/keep-sorted start @use '../../../sass/map-ext'; +@use '../../../sass/theme'; @use '../../../tokens'; +// go/keep-sorted end $_custom-property-prefix: 'list-item-video'; diff --git a/list/lib/video/list-item-video-styles.scss b/list/lib/video/list-item-video-styles.scss index 3caefe9017..55b7c04553 100644 --- a/list/lib/video/list-item-video-styles.scss +++ b/list/lib/video/list-item-video-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './list-item-video'; +// go/keep-sorted end @include list-item-video.styles; diff --git a/menu/lib/_menu.scss b/menu/lib/_menu.scss index 5462a8f6a5..8f60e7eede 100644 --- a/menu/lib/_menu.scss +++ b/menu/lib/_menu.scss @@ -3,15 +3,18 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; - +// go/keep-sorted end +// go/keep-sorted start +@use '../../elevation/lib/elevation'; +@use '../../focus/focus-ring'; @use '../../list/list'; -@use './menuitem/menu-item'; @use '../../sass/resolvers'; @use '../../sass/theme'; @use '../../tokens'; -@use '../../elevation/lib/elevation'; -@use '../../focus/focus-ring'; +@use './menuitem/menu-item'; +// go/keep-sorted end $_custom-property-prefix: 'menu'; diff --git a/menu/lib/menu-styles.scss b/menu/lib/menu-styles.scss index cb872ffec6..85d7d7ba17 100644 --- a/menu/lib/menu-styles.scss +++ b/menu/lib/menu-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './menu'; +// go/keep-sorted end @include menu.styles; diff --git a/menu/lib/menuitem/_menu-item.scss b/menu/lib/menuitem/_menu-item.scss index c7705e7a19..95ab477d6f 100644 --- a/menu/lib/menuitem/_menu-item.scss +++ b/menu/lib/menuitem/_menu-item.scss @@ -3,19 +3,22 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; @use 'sass:string'; - +// go/keep-sorted end +// go/keep-sorted start +@use '../../../elevation/lib/elevation'; +@use '../../../focus/focus-ring'; @use '../../../list/list'; -@use '../../../ripple/ripple'; @use '../../../list/list-item'; +@use '../../../ripple/ripple'; +@use '../../../sass/map-ext'; @use '../../../sass/resolvers'; +@use '../../../sass/string-ext'; @use '../../../sass/theme'; @use '../../../tokens'; -@use '../../../sass/map-ext'; -@use '../../../sass/string-ext'; -@use '../../../elevation/lib/elevation'; -@use '../../../focus/focus-ring'; +// go/keep-sorted end $_custom-property-prefix: 'menu'; diff --git a/menu/lib/menuitem/menu-item-private-styles.scss b/menu/lib/menuitem/menu-item-private-styles.scss index cd152fcc02..865187502b 100644 --- a/menu/lib/menuitem/menu-item-private-styles.scss +++ b/menu/lib/menuitem/menu-item-private-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './menu-item'; +// go/keep-sorted end @include menu-item.private-props; diff --git a/menu/lib/menuitem/menu-item-styles.scss b/menu/lib/menuitem/menu-item-styles.scss index 36d974d9b1..b50d204563 100644 --- a/menu/lib/menuitem/menu-item-styles.scss +++ b/menu/lib/menuitem/menu-item-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './menu-item'; +// go/keep-sorted end @include menu-item.styles; diff --git a/menusurface/lib/_md-comp-menu-surface.scss b/menusurface/lib/_md-comp-menu-surface.scss index 7eaa90f0c3..b8837dd674 100644 --- a/menusurface/lib/_md-comp-menu-surface.scss +++ b/menusurface/lib/_md-comp-menu-surface.scss @@ -3,9 +3,13 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; +// go/keep-sorted end +// go/keep-sorted start @use '../../elevation/lib/elevation'; @use '../../tokens'; +// go/keep-sorted end $_default-deps: ( md-sys-color: tokens.md-sys-color-values-light(), diff --git a/menusurface/lib/_menu-surface.scss b/menusurface/lib/_menu-surface.scss index 389fddbce8..78a7ecfb06 100644 --- a/menusurface/lib/_menu-surface.scss +++ b/menusurface/lib/_menu-surface.scss @@ -6,10 +6,14 @@ // 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 '../../sass/theme'; @use './md-comp-menu-surface'; +// go/keep-sorted end $_custom-property-prefix: 'menu-surface'; $_fade-in-duration: 0.03s; diff --git a/menusurface/lib/menu-surface-styles.scss b/menusurface/lib/menu-surface-styles.scss index 7be4bb3b96..adbebc1641 100644 --- a/menusurface/lib/menu-surface-styles.scss +++ b/menusurface/lib/menu-surface-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './menu-surface'; +// go/keep-sorted end @include menu-surface.styles; diff --git a/navigationbar/lib/_navigation-bar.scss b/navigationbar/lib/_navigation-bar.scss index b3111fd218..98c1b77b97 100644 --- a/navigationbar/lib/_navigation-bar.scss +++ b/navigationbar/lib/_navigation-bar.scss @@ -6,9 +6,11 @@ // stylelint-disable selector-class-pattern -- // Selector '.md3-*' should only be used in this project. +// go/keep-sorted start @use '../../elevation/lib/elevation'; @use '../../sass/theme'; @use '../../tokens'; +// go/keep-sorted end @mixin theme($tokens) { $tokens: theme.validate-theme( diff --git a/navigationbar/lib/navigation-bar-styles.scss b/navigationbar/lib/navigation-bar-styles.scss index 136183b436..97090cfe80 100644 --- a/navigationbar/lib/navigation-bar-styles.scss +++ b/navigationbar/lib/navigation-bar-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './navigation-bar'; +// go/keep-sorted end @include navigation-bar.styles; diff --git a/navigationdrawer/lib/_navigation-drawer-modal.scss b/navigationdrawer/lib/_navigation-drawer-modal.scss index 7f98252459..3dc7232d72 100644 --- a/navigationdrawer/lib/_navigation-drawer-modal.scss +++ b/navigationdrawer/lib/_navigation-drawer-modal.scss @@ -6,12 +6,16 @@ // 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/elevation'; @use '../../motion/animation'; -@use '../../sass/theme'; @use '../../sass/shape'; +@use '../../sass/theme'; @use './shared'; +// go/keep-sorted end $_curve: animation.$standard-easing; $_delay: 0s; diff --git a/navigationdrawer/lib/_navigation-drawer.scss b/navigationdrawer/lib/_navigation-drawer.scss index 6f223e6045..aa88d09333 100644 --- a/navigationdrawer/lib/_navigation-drawer.scss +++ b/navigationdrawer/lib/_navigation-drawer.scss @@ -6,11 +6,13 @@ // stylelint-disable selector-class-pattern -- // Selector '.md3-*' should only be used in this project. -@use '../../motion/animation'; +// go/keep-sorted start @use '../../elevation/elevation'; -@use '../../sass/theme'; +@use '../../motion/animation'; @use '../../sass/shape'; +@use '../../sass/theme'; @use './shared'; +// go/keep-sorted end $curve: animation.$standard-easing; $default: 0s; diff --git a/navigationdrawer/lib/_shared.scss b/navigationdrawer/lib/_shared.scss index 19828d82dc..7acc1485b9 100644 --- a/navigationdrawer/lib/_shared.scss +++ b/navigationdrawer/lib/_shared.scss @@ -6,9 +6,12 @@ // 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'; +// go/keep-sorted end @mixin styles() { .md3-navigation-drawer-modal { diff --git a/navigationdrawer/lib/navigation-drawer-modal-styles.scss b/navigationdrawer/lib/navigation-drawer-modal-styles.scss index 83678c46c8..c2d1ce5c2f 100644 --- a/navigationdrawer/lib/navigation-drawer-modal-styles.scss +++ b/navigationdrawer/lib/navigation-drawer-modal-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './navigation-drawer-modal'; +// go/keep-sorted end @include navigation-drawer-modal.styles; diff --git a/navigationdrawer/lib/navigation-drawer-styles.scss b/navigationdrawer/lib/navigation-drawer-styles.scss index 31f5d8c040..a1212dd03d 100644 --- a/navigationdrawer/lib/navigation-drawer-styles.scss +++ b/navigationdrawer/lib/navigation-drawer-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './navigation-drawer'; +// go/keep-sorted end @include navigation-drawer.styles; diff --git a/navigationdrawer/lib/shared-styles.scss b/navigationdrawer/lib/shared-styles.scss index c4f743c28c..01bdeda127 100644 --- a/navigationdrawer/lib/shared-styles.scss +++ b/navigationdrawer/lib/shared-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './shared'; +// go/keep-sorted end @include shared.styles; diff --git a/navigationtab/lib/_navigation-tab.scss b/navigationtab/lib/_navigation-tab.scss index c9e4071b13..049c2d84c8 100644 --- a/navigationtab/lib/_navigation-tab.scss +++ b/navigationtab/lib/_navigation-tab.scss @@ -6,14 +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 '../../badge/badge'; -@use '../../ripple/ripple'; @use '../../focus/focus-ring'; @use '../../motion/animation'; +@use '../../ripple/ripple'; @use '../../sass/theme'; @use '../../tokens'; +// go/keep-sorted end $animation-duration: 100ms; $_custom-property-prefix: 'navigation-bar'; diff --git a/navigationtab/lib/navigation-tab-styles.scss b/navigationtab/lib/navigation-tab-styles.scss index 56409ad589..0a2d3fdfef 100644 --- a/navigationtab/lib/navigation-tab-styles.scss +++ b/navigationtab/lib/navigation-tab-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './navigation-tab'; +// go/keep-sorted end @include navigation-tab.styles; diff --git a/radio/lib/_radio.scss b/radio/lib/_radio.scss index 72ef20ac75..038a076649 100644 --- a/radio/lib/_radio.scss +++ b/radio/lib/_radio.scss @@ -3,12 +3,16 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; +// go/keep-sorted end +// go/keep-sorted start @use '../../focus/focus-ring'; @use '../../motion/animation'; @use '../../ripple/ripple'; @use '../../sass/theme'; @use '../../tokens'; +// go/keep-sorted end $_md-sys-motion: tokens.md-sys-motion-values(); diff --git a/radio/lib/forced-colors-styles.scss b/radio/lib/forced-colors-styles.scss index 99d963e8be..c181a0c06d 100644 --- a/radio/lib/forced-colors-styles.scss +++ b/radio/lib/forced-colors-styles.scss @@ -3,7 +3,9 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './radio'; +// go/keep-sorted end @media (forced-colors: active) { :host { diff --git a/radio/lib/radio-styles.scss b/radio/lib/radio-styles.scss index b226c3c75c..576bd397d5 100644 --- a/radio/lib/radio-styles.scss +++ b/radio/lib/radio-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './radio'; +// go/keep-sorted end @include radio.styles; diff --git a/ripple/lib/_md-comp-ripple.scss b/ripple/lib/_md-comp-ripple.scss index e1c364e8f6..ce64184cc6 100644 --- a/ripple/lib/_md-comp-ripple.scss +++ b/ripple/lib/_md-comp-ripple.scss @@ -3,8 +3,12 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; +// go/keep-sorted end +// go/keep-sorted start @use '../../tokens'; +// go/keep-sorted end $_default-deps: ( md-sys-color: tokens.md-sys-color-values-light(), diff --git a/ripple/lib/_ripple.scss b/ripple/lib/_ripple.scss index 5dd483ccc5..46e2f678f2 100644 --- a/ripple/lib/_ripple.scss +++ b/ripple/lib/_ripple.scss @@ -3,10 +3,14 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; +// go/keep-sorted end +// go/keep-sorted start @use '../../sass/theme'; @use '../../tokens'; @use './md-comp-ripple'; +// go/keep-sorted end @mixin theme($tokens) { $tokens: theme.validate-theme(md-comp-ripple.values(), $tokens); diff --git a/ripple/lib/ripple-styles.scss b/ripple/lib/ripple-styles.scss index 63e2235a4b..7a19746cac 100644 --- a/ripple/lib/ripple-styles.scss +++ b/ripple/lib/ripple-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './ripple'; +// go/keep-sorted end @include ripple.styles; diff --git a/sass/_assert.scss b/sass/_assert.scss index 4b94add717..2bcfe32514 100644 --- a/sass/_assert.scss +++ b/sass/_assert.scss @@ -3,7 +3,9 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:meta'; +// go/keep-sorted end /// /// is-type returns the given value if it matches the given type. If not, it diff --git a/sass/_color-scheme.scss b/sass/_color-scheme.scss index 50302fd827..2d892cfab9 100644 --- a/sass/_color-scheme.scss +++ b/sass/_color-scheme.scss @@ -3,11 +3,15 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; +// go/keep-sorted end +// go/keep-sorted start @use '../tokens'; @use './color'; @use './theme'; @use './var'; +// go/keep-sorted end // TODO(b/213571555): Following Sass mixins will call color scheme APIs which // are generated using tokens compiler when ready. diff --git a/sass/_color.scss b/sass/_color.scss index a7cd6daff9..16b4aafd84 100644 --- a/sass/_color.scss +++ b/sass/_color.scss @@ -3,13 +3,17 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:list'; @use 'sass:map'; @use 'sass:meta'; @use 'sass:string'; +// go/keep-sorted end +// go/keep-sorted start @use './assert'; @use './string-ext'; @use './var'; +// go/keep-sorted end $_hex: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9' 'a' 'b' 'c' 'd' 'e' 'f'; diff --git a/sass/_elevation.scss b/sass/_elevation.scss index 6911c82b83..cce65b0bda 100644 --- a/sass/_elevation.scss +++ b/sass/_elevation.scss @@ -3,10 +3,14 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; @use 'sass:meta'; +// go/keep-sorted end +// go/keep-sorted start @use './color'; @use './var'; +// go/keep-sorted end /// Returns the appropriate elevation theme for the given args. /// diff --git a/sass/_feature-flags.scss b/sass/_feature-flags.scss index c72d03c80f..e0cfad80f8 100644 --- a/sass/_feature-flags.scss +++ b/sass/_feature-flags.scss @@ -3,9 +3,11 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:list'; @use 'sass:map'; @use 'sass:meta'; +// go/keep-sorted end /// Valid configuration values for each config option. $_valid-values: ( diff --git a/sass/_map-ext.scss b/sass/_map-ext.scss index 667912d311..9ebeb76ee9 100644 --- a/sass/_map-ext.scss +++ b/sass/_map-ext.scss @@ -3,7 +3,9 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; +// go/keep-sorted end /// Picks only specified items in a map. /// diff --git a/sass/_resolvers.scss b/sass/_resolvers.scss index 5fd0edb5a0..0324a9a04c 100644 --- a/sass/_resolvers.scss +++ b/sass/_resolvers.scss @@ -3,9 +3,13 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:meta'; +// go/keep-sorted end +// go/keep-sorted start @use './elevation'; @use './typography'; +// go/keep-sorted end /// Material Design resolvers. $material: ( diff --git a/sass/_shape.scss b/sass/_shape.scss index 9f9d96fa80..1d08122e9b 100644 --- a/sass/_shape.scss +++ b/sass/_shape.scss @@ -3,12 +3,16 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:list'; @use 'sass:map'; @use 'sass:meta'; @use 'sass:string'; +// go/keep-sorted end +// go/keep-sorted start @use './string-ext'; @use './var'; +// go/keep-sorted end /// Resolves one or more shape tokens and expands them into 4 separate logical /// tokens for each corner. diff --git a/sass/_string-ext.scss b/sass/_string-ext.scss index 0dc4b62c12..0f891446b4 100644 --- a/sass/_string-ext.scss +++ b/sass/_string-ext.scss @@ -3,8 +3,10 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:list'; @use 'sass:string'; +// go/keep-sorted end /// Checks if a string starts with a given prefix. /// diff --git a/sass/_theme.scss b/sass/_theme.scss index a14be293dc..30b8e50272 100644 --- a/sass/_theme.scss +++ b/sass/_theme.scss @@ -3,11 +3,15 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:list'; @use 'sass:map'; @use 'sass:meta'; +// go/keep-sorted end +// go/keep-sorted start @use './string-ext'; @use './var'; +// go/keep-sorted end /// Transform a user-provided `$theme` map's values into `var()` custom property /// values. diff --git a/sass/_typography.scss b/sass/_typography.scss index d8e89c66b0..2436cd4bb6 100644 --- a/sass/_typography.scss +++ b/sass/_typography.scss @@ -3,10 +3,14 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; @use 'sass:math'; @use 'sass:meta'; +// go/keep-sorted end +// go/keep-sorted start @use './theme'; +// go/keep-sorted end /// Resolves a theme's typography tokens for the given prefix. /// diff --git a/sass/_var.scss b/sass/_var.scss index 3bab9348fe..ea805dbeb3 100644 --- a/sass/_var.scss +++ b/sass/_var.scss @@ -3,11 +3,15 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:map'; @use 'sass:meta'; @use 'sass:string'; +// go/keep-sorted end +// go/keep-sorted start @use './feature-flags'; @use './string-ext'; +// go/keep-sorted end /// Creates a custom property `var()` string according to the configured /// `var-fallbacks` feature flag. diff --git a/sass/test/_color-scheme.test.scss b/sass/test/_color-scheme.test.scss index 1207d178e5..8ba90c0dcd 100644 --- a/sass/test/_color-scheme.test.scss +++ b/sass/test/_color-scheme.test.scss @@ -3,8 +3,12 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'true' as test; +// go/keep-sorted end +// go/keep-sorted start @use '../color-scheme'; +// go/keep-sorted end @include test.describe('color-scheme') { @include test.describe('dark-color-scheme()') { diff --git a/sass/test/_color.test.scss b/sass/test/_color.test.scss index af6a89374c..c91fce9403 100644 --- a/sass/test/_color.test.scss +++ b/sass/test/_color.test.scss @@ -3,8 +3,12 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'true' as test; +// go/keep-sorted end +// go/keep-sorted start @use '../color'; +// go/keep-sorted end @include test.describe('color') { @include test.describe('color-var-hex-to-rgba()') { diff --git a/sass/test/_map-ext.test.scss b/sass/test/_map-ext.test.scss index 4d621b0d4b..26c38e66ee 100644 --- a/sass/test/_map-ext.test.scss +++ b/sass/test/_map-ext.test.scss @@ -3,10 +3,14 @@ // SPDX-License-Identifier: Apache-2.0 // -@use 'sass:map'; +// go/keep-sorted start @use 'sass:list'; +@use 'sass:map'; @use 'true' as test; +// go/keep-sorted end +// go/keep-sorted start @use '../map-ext'; +// go/keep-sorted end @include test.describe('map-ext') { @include test.describe('pick()') { diff --git a/sass/test/_shape.test.scss b/sass/test/_shape.test.scss index bbf5858724..ea859e6059 100644 --- a/sass/test/_shape.test.scss +++ b/sass/test/_shape.test.scss @@ -3,14 +3,18 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use 'sass:list'; @use 'sass:map'; @use 'sass:meta'; @use 'true' as test; +// go/keep-sorted end +// go/keep-sorted start @use '../resolvers'; @use '../shape'; -@use '../var'; @use '../theme'; +@use '../var'; +// go/keep-sorted end @include test.describe('shape') { @include test.describe('resolver()') { diff --git a/sass/test/_string-ext.test.scss b/sass/test/_string-ext.test.scss index 1c4e97ec94..9c4947bfa6 100644 --- a/sass/test/_string-ext.test.scss +++ b/sass/test/_string-ext.test.scss @@ -3,10 +3,14 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start +@use 'sass:list'; +@use 'sass:meta'; @use 'true' as test; +// go/keep-sorted end +// go/keep-sorted start @use '../string-ext'; -@use 'sass:meta'; -@use 'sass:list'; +// go/keep-sorted end @include test.describe('string-ext') { @include test.describe('has-prefix()') { diff --git a/sass/test/test.scss b/sass/test/test.scss index aa2790be01..0001a2ba23 100644 --- a/sass/test/test.scss +++ b/sass/test/test.scss @@ -3,8 +3,10 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './color-scheme.test'; @use './color.test'; @use './map-ext.test'; @use './shape.test'; @use './string-ext.test'; +// go/keep-sorted end diff --git a/segmentedbutton/lib/_outlined-segmented-button.scss b/segmentedbutton/lib/_outlined-segmented-button.scss index 21e2a82d09..ee5538eee8 100644 --- a/segmentedbutton/lib/_outlined-segmented-button.scss +++ b/segmentedbutton/lib/_outlined-segmented-button.scss @@ -6,10 +6,14 @@ // 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'; @use './shared'; +// go/keep-sorted end @mixin styles() { $tokens: tokens.md-comp-outlined-segmented-button-values(); diff --git a/segmentedbutton/lib/_shared.scss b/segmentedbutton/lib/_shared.scss index 81156fb9e2..e0faecd63a 100644 --- a/segmentedbutton/lib/_shared.scss +++ b/segmentedbutton/lib/_shared.scss @@ -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 '../../motion/animation'; @use '../../ripple/ripple'; @use '../../sass/color'; @use '../../sass/resolvers'; @use '../../sass/touch-target'; @use '../../sass/typography'; +// go/keep-sorted end @mixin styles() { @keyframes md3-segmented-button-checkmark-selection-draw-in { diff --git a/segmentedbutton/lib/outlined-styles.scss b/segmentedbutton/lib/outlined-styles.scss index d53adedcfc..1de4c530ca 100644 --- a/segmentedbutton/lib/outlined-styles.scss +++ b/segmentedbutton/lib/outlined-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './outlined-segmented-button'; +// go/keep-sorted end @include outlined-segmented-button.styles; diff --git a/segmentedbutton/lib/shared-styles.scss b/segmentedbutton/lib/shared-styles.scss index c4f743c28c..01bdeda127 100644 --- a/segmentedbutton/lib/shared-styles.scss +++ b/segmentedbutton/lib/shared-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './shared'; +// go/keep-sorted end @include shared.styles; diff --git a/segmentedbuttonset/lib/_outlined-segmented-button-set.scss b/segmentedbuttonset/lib/_outlined-segmented-button-set.scss index 5d742f081b..7a0e27a012 100644 --- a/segmentedbuttonset/lib/_outlined-segmented-button-set.scss +++ b/segmentedbuttonset/lib/_outlined-segmented-button-set.scss @@ -3,9 +3,11 @@ // SPDX-License-Identifier: Apache-2.0 // -@use '../../sass/theme'; +// go/keep-sorted start @use '../../sass/shape'; +@use '../../sass/theme'; @use '../../tokens'; +// go/keep-sorted end $_custom-property-prefix: 'segmented-button'; diff --git a/segmentedbuttonset/lib/outlined-styles.scss b/segmentedbuttonset/lib/outlined-styles.scss index f35e5539d2..4e5cfc3a17 100644 --- a/segmentedbuttonset/lib/outlined-styles.scss +++ b/segmentedbuttonset/lib/outlined-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './outlined-segmented-button-set'; +// go/keep-sorted end @include outlined-segmented-button-set.styles; diff --git a/segmentedbuttonset/lib/shared-styles.scss b/segmentedbuttonset/lib/shared-styles.scss index c4f743c28c..01bdeda127 100644 --- a/segmentedbuttonset/lib/shared-styles.scss +++ b/segmentedbuttonset/lib/shared-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './shared'; +// go/keep-sorted end @include shared.styles; diff --git a/switch/lib/_handle.scss b/switch/lib/_handle.scss index 5448fab1ad..6161ae689a 100644 --- a/switch/lib/_handle.scss +++ b/switch/lib/_handle.scss @@ -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'; -@use '../../tokens'; +// go/keep-sorted end +// go/keep-sorted start @use '../../ripple/ripple'; +@use '../../tokens'; +// go/keep-sorted end $_md-sys-motion: tokens.md-sys-motion-values(); $_easing-standard: map.get($_md-sys-motion, easing-standard); diff --git a/switch/lib/_icon.scss b/switch/lib/_icon.scss index 460b384f3d..f0ad3f6161 100644 --- a/switch/lib/_icon.scss +++ b/switch/lib/_icon.scss @@ -6,8 +6,12 @@ // 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 '../../tokens'; +// go/keep-sorted end $_md-sys-motion: tokens.md-sys-motion-values(); $_easing-standard: map.get($_md-sys-motion, easing-standard); diff --git a/switch/lib/_switch.scss b/switch/lib/_switch.scss index 6b4095b084..5bd3eab0b9 100644 --- a/switch/lib/_switch.scss +++ b/switch/lib/_switch.scss @@ -8,7 +8,10 @@ // PUBLIC PROPERTIES +// go/keep-sorted start @use 'sass:map'; +// go/keep-sorted end +// go/keep-sorted start @use '../../focus/focus-ring'; @use '../../sass/color'; @use '../../sass/shape'; @@ -16,10 +19,10 @@ @use '../../sass/touch-target'; @use '../../sass/var'; @use '../../tokens'; - -@use './track'; @use './handle'; @use './icon'; +@use './track'; +// go/keep-sorted end $_forced-colors-theme: ( disabled-selected-icon-color: GrayText, diff --git a/switch/lib/_track.scss b/switch/lib/_track.scss index 26fee4fbce..d4e917b91e 100644 --- a/switch/lib/_track.scss +++ b/switch/lib/_track.scss @@ -6,7 +6,9 @@ // 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 @mixin styles() { .md3-switch__track { diff --git a/switch/lib/switch-styles.scss b/switch/lib/switch-styles.scss index 1bf31a02ad..d091c127f5 100644 --- a/switch/lib/switch-styles.scss +++ b/switch/lib/switch-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './switch'; +// go/keep-sorted end @include switch.styles; diff --git a/testing/table/lib/_test-table-theme.scss b/testing/table/lib/_test-table-theme.scss index f0e33e390d..0b58b6e518 100644 --- a/testing/table/lib/_test-table-theme.scss +++ b/testing/table/lib/_test-table-theme.scss @@ -6,12 +6,15 @@ // 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/resolvers'; @use '../../../sass/theme'; @use '../../../sass/typography'; @use '../../../tokens'; +// go/keep-sorted end $_default-deps: ( md-sys-color: tokens.md-sys-color-values-light(), diff --git a/testing/table/lib/_test-table.scss b/testing/table/lib/_test-table.scss index 7c123ddcb3..007d82c2e8 100644 --- a/testing/table/lib/_test-table.scss +++ b/testing/table/lib/_test-table.scss @@ -6,7 +6,9 @@ // 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 @mixin static-styles() { :host { diff --git a/testing/table/lib/test-table-styles.scss b/testing/table/lib/test-table-styles.scss index 0a6d8f0229..f317369c85 100644 --- a/testing/table/lib/test-table-styles.scss +++ b/testing/table/lib/test-table-styles.scss @@ -6,8 +6,10 @@ // stylelint-disable selector-class-pattern -- // Selector '.md3-*' should only be used in this project. -@use './test-table-theme'; +// go/keep-sorted start @use './test-table'; +@use './test-table-theme'; +// go/keep-sorted end @include test-table.static-styles; diff --git a/textfield/lib/_filled-text-field.scss b/textfield/lib/_filled-text-field.scss index 972876cdea..1161d47574 100644 --- a/textfield/lib/_filled-text-field.scss +++ b/textfield/lib/_filled-text-field.scss @@ -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 '../../field/filled-field'; @use '../../sass/resolvers'; @use '../../sass/shape'; @use '../../sass/theme'; @use '../../tokens'; @use './shared'; +// go/keep-sorted end @mixin theme($tokens) { // Add missing tokens diff --git a/textfield/lib/_input.scss b/textfield/lib/_input.scss index 4d0735ac84..7368a6ac24 100644 --- a/textfield/lib/_input.scss +++ b/textfield/lib/_input.scss @@ -6,7 +6,9 @@ // stylelint-disable selector-class-pattern -- // Selector '.md3-*' should only be used in this project. +// go/keep-sorted start @use '../../sass/typography'; +// go/keep-sorted end @mixin styles() { .md3-text-field__input { diff --git a/textfield/lib/_outlined-text-field.scss b/textfield/lib/_outlined-text-field.scss index 33306bf132..b62ae7a4ec 100644 --- a/textfield/lib/_outlined-text-field.scss +++ b/textfield/lib/_outlined-text-field.scss @@ -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 '../../field/outlined-field'; @use '../../sass/resolvers'; @use '../../sass/shape'; @use '../../sass/theme'; @use '../../tokens'; @use './shared'; +// go/keep-sorted end @mixin theme($tokens) { // Add missing tokens diff --git a/textfield/lib/_shared.scss b/textfield/lib/_shared.scss index 698ff5532d..ba2a8d9952 100644 --- a/textfield/lib/_shared.scss +++ b/textfield/lib/_shared.scss @@ -6,11 +6,15 @@ // 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/resolvers'; @use '../../sass/typography'; @use './icon'; @use './input'; +// go/keep-sorted end @mixin styles() { :host { diff --git a/textfield/lib/filled-forced-colors-styles.scss b/textfield/lib/filled-forced-colors-styles.scss index 35c1f686e4..21ded3dce1 100644 --- a/textfield/lib/filled-forced-colors-styles.scss +++ b/textfield/lib/filled-forced-colors-styles.scss @@ -3,7 +3,9 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './filled-text-field'; +// go/keep-sorted end @media (forced-colors: active) { :host { diff --git a/textfield/lib/filled-styles.scss b/textfield/lib/filled-styles.scss index 5e2c2a411b..82c3be1100 100644 --- a/textfield/lib/filled-styles.scss +++ b/textfield/lib/filled-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './filled-text-field'; +// go/keep-sorted end @include filled-text-field.styles; diff --git a/textfield/lib/outlined-forced-colors-styles.scss b/textfield/lib/outlined-forced-colors-styles.scss index 55863f4631..ab7330acae 100644 --- a/textfield/lib/outlined-forced-colors-styles.scss +++ b/textfield/lib/outlined-forced-colors-styles.scss @@ -3,7 +3,9 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './outlined-text-field'; +// go/keep-sorted end @media (forced-colors: active) { :host { diff --git a/textfield/lib/outlined-styles.scss b/textfield/lib/outlined-styles.scss index f68a1853c2..c62394b63d 100644 --- a/textfield/lib/outlined-styles.scss +++ b/textfield/lib/outlined-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './outlined-text-field'; +// go/keep-sorted end @include outlined-text-field.styles; diff --git a/textfield/lib/shared-styles.scss b/textfield/lib/shared-styles.scss index 0fdff8ed3e..70480ae228 100644 --- a/textfield/lib/shared-styles.scss +++ b/textfield/lib/shared-styles.scss @@ -3,6 +3,8 @@ // SPDX-License-Identifier: Apache-2.0 // +// go/keep-sorted start @use './shared'; +// go/keep-sorted end @include shared.styles;