Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 0626482

Browse files
committed
build(modules): configure more components to depend on input variables
- add 'checkbox', 'datepicker', 'radioButton', 'switch'
1 parent b3e9ffe commit 0626482

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gulp/util.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,17 @@ function buildModule(module, opts) {
184184
*/
185185
function buildModuleStyles(name) {
186186
let files = [];
187+
const inputVariableConsumers = [
188+
'input', 'select', 'checkbox', 'datepicker', 'radioButton', 'switch'
189+
];
187190
config.themeBaseFiles.forEach(function(fileGlob) {
188191
files = files.concat(glob(fileGlob, {cwd: ROOT}));
189192
});
190193

191194
// Handle md-input and md-input-container variables that need to be shared with md-select
192195
// in order to orchestrate identical layouts and alignments. In the future, it may be necessary
193196
// to also use these variables with md-datepicker and md-autocomplete.
194-
if (name === 'input' || name === 'select') {
197+
if (inputVariableConsumers.includes(name)) {
195198
files = files.concat(glob(config.inputVariables, {cwd: ROOT}));
196199
}
197200

0 commit comments

Comments
 (0)