This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(select): do not emit styles when calling
theme-styles(())
.
PiperOrigin-RevId: 489980365
- Loading branch information
1 parent
96f4726
commit 18b8f31
Showing
3 changed files
with
56 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@use 'third_party/javascript/material_components_web/tokens/v0_132/' as tokens; | ||
@use 'true' as test; | ||
|
||
@use '../select-filled-theme'; | ||
@use '../select-outlined-theme'; | ||
|
||
@include test.describe('select-filled-theme') { | ||
@include test.describe('theme-styles()') { | ||
@include test.it('return no styles when no theme is provided') { | ||
@include test.assert { | ||
@include test.output { | ||
@include select-filled-theme.theme-styles(()); | ||
} | ||
|
||
@include test.expect { | ||
// No content. This is testing that an error isn't thrown. | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
@include test.describe('select-outlined-theme') { | ||
@include test.describe('theme-styles()') { | ||
@include test.it('return no styles when no theme is provided') { | ||
@include test.assert { | ||
@include test.output { | ||
@include select-outlined-theme.theme-styles(()); | ||
} | ||
|
||
@include test.expect { | ||
// No content. This is testing that an error isn't thrown. | ||
} | ||
} | ||
} | ||
} | ||
} |