Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
chore: internal cleanup only affecting BUILD files
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 505523145
  • Loading branch information
material-web-copybara authored and copybara-github committed Jan 30, 2023
1 parent 3a705fa commit 147ef0f
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/mdc-button/_button-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
@include feature-targeting.targets($feat-structure) {
font-size: 0;
position: absolute;
@include rtl.ignore-next-line();
transform: translate(-50%, -50%);
top: 50%;
left: 50%;
Expand Down
3 changes: 3 additions & 0 deletions packages/mdc-chips/_chip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@
.mdc-evolution-chip__checkmark {
@include feature-targeting.targets($feat-animation) {
transition: animation.standard(transform, 150ms);
@include rtl.ignore-next-line();
transform: translate(-75%, -50%);
}
}
Expand Down Expand Up @@ -344,6 +345,7 @@
@include feature-targeting.targets($feat-animation) {
transition: animation.standard(opacity, 75ms);
// Ensure the checkmark stays statically positioned
@include rtl.ignore-next-line();
transform: translate(-50%, -50%);
}
}
Expand All @@ -365,6 +367,7 @@

.mdc-evolution-chip__checkmark {
@include feature-targeting.targets($feat-structure) {
@include rtl.ignore-next-line();
transform: translate(-50%, -50%);
opacity: 1;
}
Expand Down
1 change: 1 addition & 0 deletions packages/mdc-elevation/_elevation-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ $transition-timing-function: animation-variables.$standard-curve-timing-function
top: 50%;
@include rtl.ignore-next-line();
left: 50%;
@include rtl.ignore-next-line();
transform: translate(-50%, -50%);
}
}
Expand Down
28 changes: 28 additions & 0 deletions packages/mdc-floating-label/gss_gss.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Copyright 2017 Google Inc.

// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:

// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.

// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

@use '@material/base/mixins' as base-mixins;
@use './mixins';

@provide 'mdc.floatinglabel';

@include base-mixins.emit-once('mdc-floating-label') {
@include mixins.core-styles;
}
29 changes: 29 additions & 0 deletions packages/mdc-notched-outline/gss_gss.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Copyright 2017 Google Inc.

// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:

// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.

// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

@use '@material/base/mixins' as base-mixins;
@use './mixins';

@provide 'mdc.notchedoutline';

// Notched Outline is intended for use by multiple components, but its styles should only be emitted once when bundled
@include base-mixins.emit-once('mdc-notched-outline') {
@include mixins.core-styles;
}
1 change: 1 addition & 0 deletions packages/mdc-ripple/_ripple.scss
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@

@include feature-targeting.targets($feat-structure) {
// Retain transform from mdc-ripple-fg-radius-in activation
@include rtl.ignore-next-line();
transform: translate(var(--mdc-ripple-fg-translate-end, 0))
scale(var(--mdc-ripple-fg-scale, 1));
}
Expand Down
1 change: 1 addition & 0 deletions packages/mdc-slider/_slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ $_track-inactive-height: 4px;
left: 50%;
position: absolute;
top: 50%;
@include rtl.ignore-next-line();
transform: translate(-50%, -50%);
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/mdc-switch/_switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ $ripple-target: '.mdc-switch__ripple';
left: 50%;
position: absolute;
top: 50%;
@include rtl.ignore-next-line();
transform: translate(-50%, -50%);
// Move ripple beneath shadow overlay and handle background colors (see
// handle() mixin for explanation).
Expand Down
1 change: 1 addition & 0 deletions packages/mdc-touch-target/_touch-target.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ $width: $height !default;
@include rtl.ignore-next-line();
left: 50%;
width: $width;
@include rtl.ignore-next-line();
transform: translate(-50%, -50%);
}
} @else {
Expand Down

0 comments on commit 147ef0f

Please sign in to comment.