Skip to content

Commit

Permalink
fix(core): compile field-label only once
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius Osokinas committed Feb 10, 2021
1 parent b19c0af commit 4b4bb46
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/core/src/components/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use './includes';

@use './button/button';
@forward './button/button';
@use './checkbox/checkbox';
Expand All @@ -18,10 +20,6 @@
@forward './textarea/textarea';

@mixin components() {
// conditionally includable in other components
@include field-label.FieldLabel();

// all the rest
@include button.Button();
@include checkbox.Checkbox();
@include helper-text.HelperText();
Expand All @@ -30,4 +28,8 @@
@include radio.Radio();
@include search.Search();
@include textarea.Textarea();

@if not includes.the('field-label') {
@include field-label.FieldLabel();
}
}

0 comments on commit 4b4bb46

Please sign in to comment.