Browse Source

Fix issue with switches and checkboxes on firefox on linux

pull/1505/head
Andrew Kingston 5 years ago
parent
commit
bda46f3cf2
  1. 6
      packages/bbui/src/Form/Core/Checkbox.svelte
  2. 6
      packages/bbui/src/Form/Core/Switch.svelte

6
packages/bbui/src/Form/Core/Checkbox.svelte

@ -45,3 +45,9 @@
</span> </span>
<span class="spectrum-Checkbox-label">{text || ""}</span> <span class="spectrum-Checkbox-label">{text || ""}</span>
</label> </label>
<style>
.spectrum-Checkbox-input {
opacity: 0;
}
</style>

6
packages/bbui/src/Form/Core/Switch.svelte

@ -26,3 +26,9 @@
<span class="spectrum-Switch-switch" /> <span class="spectrum-Switch-switch" />
<label class="spectrum-Switch-label" for={id}>{text}</label> <label class="spectrum-Switch-label" for={id}>{text}</label>
</div> </div>
<style>
.spectrum-Switch-input {
opacity: 0;
}
</style>

Loading…
Cancel
Save