Skip to content

Commit

Permalink
fix(data-table): prevent selectable datatable with sticky header from…
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym authored Apr 5, 2022
1 parent 845225f commit e8da9d7
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions src/Checkbox/InlineCheckbox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,21 @@
export let ref = null;
</script>

<input
bind:this="{ref}"
type="checkbox"
class:bx--checkbox="{true}"
checked="{indeterminate ? false : checked}"
indeterminate="{indeterminate}"
id="{id}"
{...$$restProps}
aria-label="{undefined}"
aria-checked="{indeterminate ? 'mixed' : checked}"
on:change
/>
<label
for="{id}"
title="{title}"
aria-label="{$$props['aria-label']}"
class:bx--checkbox-label="{true}"></label>
<div class:bx--checkbox--inline="{true}">
<input
bind:this="{ref}"
type="checkbox"
class:bx--checkbox="{true}"
checked="{indeterminate ? false : checked}"
indeterminate="{indeterminate}"
id="{id}"
{...$$restProps}
aria-checked="{indeterminate ? 'mixed' : checked}"
on:change
/>
<label
for="{id}"
title="{title}"
aria-label="{$$props['aria-label']}"
class:bx--checkbox-label="{true}"></label>
</div>

0 comments on commit e8da9d7

Please sign in to comment.