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

Commit

Permalink
build(modules): configure more components to depend on input variables
Browse files Browse the repository at this point in the history
- add 'checkbox', 'datepicker', 'radioButton', 'switch'
Splaktar committed Jul 28, 2020
1 parent b3e9ffe commit 0626482
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gulp/util.js
Original file line number Diff line number Diff line change
@@ -184,14 +184,17 @@ function buildModule(module, opts) {
*/
function buildModuleStyles(name) {
let files = [];
const inputVariableConsumers = [
'input', 'select', 'checkbox', 'datepicker', 'radioButton', 'switch'
];
config.themeBaseFiles.forEach(function(fileGlob) {
files = files.concat(glob(fileGlob, {cwd: ROOT}));
});

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

0 comments on commit 0626482

Please sign in to comment.