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

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 284854439
  • Loading branch information
Material Web Team authored and allan-chen committed Dec 11, 2019
1 parent 50f110a commit 0cc69a5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
11 changes: 5 additions & 6 deletions packages/mdc-checkbox/test/foundation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ describe('MDCCheckboxFoundation', () => {
* Used to test the behavior of overridding WebIDL properties in different
* browser environments. For example, in Safari WebIDL attributes don't
* return get/set in descriptors.
*/
*/
function withMockCheckboxDescriptorReturning(
descriptor: undefined|typeof DESC_UNDEFINED, runTests: () => void) {
const mockGetOwnPropertyDescriptor =
Expand All @@ -152,11 +152,10 @@ describe('MDCCheckboxFoundation', () => {

const originalDesc =
Object.getOwnPropertyDescriptor(Object, 'getOwnPropertyDescriptor');
Object.defineProperty(
Object, 'getOwnPropertyDescriptor', {
...originalDesc,
value: mockGetOwnPropertyDescriptor,
});
Object.defineProperty(Object, 'getOwnPropertyDescriptor', {
...originalDesc,
value: mockGetOwnPropertyDescriptor,
});
runTests();

// After running tests, restore original property.
Expand Down
4 changes: 1 addition & 3 deletions packages/mdc-fab/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ $mdc-fab-ripple-target: ".mdc-fab__ripple";
#{$mdc-fab-ripple-target} {
@include mdc-ripple-target-common($query: $query);

@include mdc-feature-targets($feat-structure) {
overflow: hidden;
}
overflow: hidden;
}
}

Expand Down
10 changes: 7 additions & 3 deletions packages/mdc-list/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,13 @@
@mixin mdc-list-item-disabled-text-color($color, $query: mdc-feature-all()) {
$feat-color: mdc-feature-create-target($query, color);

.mdc-list-item--disabled .mdc-list-item__text {
@include mdc-feature-targets($feat-color) {
@include mdc-theme-prop(color, $color);
.mdc-list-item--disabled {
.mdc-list-item__text,
.mdc-list-item__primary-text,
.mdc-list-item__secondary-text {
@include mdc-feature-targets($feat-color) {
@include mdc-theme-prop(color, $color);
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions testing/helpers/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* THE SOFTWARE.
*/

import 'jasmine';

import {MDCFoundation} from '../../packages/mdc-base/foundation';
import {FoundationConstructor} from './setup';

Expand Down

0 comments on commit 0cc69a5

Please sign in to comment.