Skip to content

Commit 78b26b0

Browse files
committed
Add basic check on values and property fields
1 parent 7092989 commit 78b26b0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scss/mixins/_utilities.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@
8181
}
8282

8383
@mixin generate-utility($utility, $infix: "") {
84+
@if not map.has-key($utility, property) {
85+
@error "Utility is missing required `property` key: #{$utility}";
86+
}
87+
@if not map.has-key($utility, values) {
88+
@error "Utility is missing required `values` key: #{$utility}";
89+
}
90+
8491
// Determine if we're generating a class, or an attribute selector
8592
$selectorType: "class";
8693
@if map.has-key($utility, selector) {

0 commit comments

Comments
 (0)