Skip to content

Commit

Permalink
feat(ld-label): add parts
Browse files Browse the repository at this point in the history
  • Loading branch information
renet committed Oct 12, 2021
1 parent 76ba14d commit 97c7244
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/liquid/components/ld-label/ld-label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export class LdLabel {
this.size && `ld-label--${this.size}`,
])}
onClick={this.handleClick}
part="tag"
{...cloneAttributes<LabelHTMLAttributes<HTMLLabelElement>>(this.el)}
>
<slot></slot>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`ld-label renders with position left 1`] = `
<ld-label position="left">
<mock:shadow-root>
<label class="ld-label ld-label--left">
<label class="ld-label ld-label--left" part="tag">
<slot></slot>
</label>
</mock:shadow-root>
Expand All @@ -14,7 +14,7 @@ exports[`ld-label renders with position left 1`] = `
exports[`ld-label renders with position right 1`] = `
<ld-label position="right">
<mock:shadow-root>
<label class="ld-label ld-label--right">
<label class="ld-label ld-label--right" part="tag">
<slot></slot>
</label>
</mock:shadow-root>
Expand All @@ -25,7 +25,7 @@ exports[`ld-label renders with position right 1`] = `
exports[`ld-label renders with size "m" 1`] = `
<ld-label size="m">
<mock:shadow-root>
<label class="ld-label ld-label--m">
<label class="ld-label ld-label--m" part="tag">
<slot></slot>
</label>
</mock:shadow-root>
Expand All @@ -36,7 +36,7 @@ exports[`ld-label renders with size "m" 1`] = `
exports[`ld-label renders with slot 1`] = `
<ld-label>
<mock:shadow-root>
<label class="ld-label">
<label class="ld-label" part="tag">
<slot></slot>
</label>
</mock:shadow-root>
Expand Down

0 comments on commit 97c7244

Please sign in to comment.