web/elements: fix alignment with checkbox in table
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
ab9efcea77
commit
db0af3763b
|
@ -286,7 +286,8 @@ export abstract class Table<T> extends AKElement {
|
||||||
<tr role="row">
|
<tr role="row">
|
||||||
${this.checkbox
|
${this.checkbox
|
||||||
? html`<td class="pf-c-table__check" role="cell">
|
? html`<td class="pf-c-table__check" role="cell">
|
||||||
<input
|
<label
|
||||||
|
><input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
.checked=${this.selectedElements.indexOf(item) >= 0}
|
.checked=${this.selectedElements.indexOf(item) >= 0}
|
||||||
@input=${(ev: InputEvent) => {
|
@input=${(ev: InputEvent) => {
|
||||||
|
@ -313,7 +314,7 @@ export abstract class Table<T> extends AKElement {
|
||||||
this.requestUpdate();
|
this.requestUpdate();
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/></label>
|
||||||
</td>`
|
</td>`
|
||||||
: html``}
|
: html``}
|
||||||
${this.expandable
|
${this.expandable
|
||||||
|
|
Reference in New Issue