Skip to content

Commit 8e06eac

Browse files
committed
feat(label): add label attribute binding
1 parent 6367b16 commit 8e06eac

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/checkbox/ux-checkbox.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
</div>
1414

1515
<!-- Leave Inline, uses :not(:empty) selector to determine margin -->
16-
<label ref="label"><slot></slot></label>
16+
<label><slot>${label}</slot></label>
1717
</template>

src/checkbox/ux-checkbox.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { processDesignAttributes } from '../designs/design-attributes';
1212
export class UxCheckbox implements Themable {
1313
@bindable public disabled: any = null;
1414
@bindable public effect = null;
15+
@bindable public label: string;
1516
@bindable public matcher = (a: any, b: any) => a === b;
1617
@bindable public model: any;
1718
@bindable public tabindex = 0;

0 commit comments

Comments
 (0)