Skip to content

Commit

Permalink
fix: disabled indeterminate state master handling
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinLaubenstein authored and nowseemee committed Jul 19, 2021
1 parent b6e2804 commit c496b86
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 27 deletions.
54 changes: 27 additions & 27 deletions packages/components-sketch/views/checkbox-group.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,33 @@
<div class="agent-states--grid">
<div class="agent-states--item">
<p class="agent-states--label">:available</p>
<scale-checkbox-group data-sketch-key="checkbox-group-1" label="Checkbox Group Label">
<div slot="checkbox-header">
<scale-checkbox
input-id="header-checkbox"
value="1"
label="checkbox"
name="nameOfCheckbox"
helper-text="helperText"
>
</scale-checkbox>
</div>
<div slot="checkbox-list">
<div style="margin-top: 0.5rem">
<scale-checkbox
value="2"
label="checkbox"
name="nameOfCheckbox"
></scale-checkbox>
</div>
<div style="margin-top: 0.5rem">
<scale-checkbox value="3" name="nameOfCheckbox"
>Checkbox Slot</scale-checkbox
>
</div>
</div>
</scale-checkbox-group data-sketch-key="checkbox-group-2" label="Checkbox Group Label">
</div>
<scale-checkbox-group data-sketch-key="checkbox-group-1" label="Checkbox Group Label">
<div slot="checkbox-header">
<scale-checkbox
input-id="header-checkbox"
value="1"
label="checkbox"
name="nameOfCheckbox"
helper-text="helperText"
>
</scale-checkbox>
</div>
<div slot="checkbox-list">
<div style="margin-top: 0.5rem">
<scale-checkbox
value="2"
label="checkbox"
name="nameOfCheckbox"
></scale-checkbox>
</div>
<div style="margin-top: 0.5rem">
<scale-checkbox value="3" name="nameOfCheckbox" >
Checkbox Slot
</scale-checkbox>
</div>
</div>
</scale-checkbox-group data-sketch-key="checkbox-group-2" label="Checkbox Group Label">
</div>
<div class="agent-states--item">
<p class="agent-states--label">:hover</p>
<scale-checkbox-group>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export class CheckboxGroup {
}
}
} else {
this.setMasterCheckBoxState(newState);
this.handleMasterDisableProp();
}
}
Expand Down

0 comments on commit c496b86

Please sign in to comment.