Skip to content

Commit

Permalink
Make label clickable (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Aug 25, 2022
1 parent 26e79a6 commit b39516b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
10 changes: 7 additions & 3 deletions src/components/dialogs/hacs-add-repository-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ export class HacsAddRepositoryDialog extends HacsDialogBase {
`}
<span>${repo.name}</span>
<span slot="secondary">${repo.description}</span>
<ha-chip slot="meta"
>${this.hacs.localize(`common.${repo.category}`)}</ha-chip
>
<ha-chip slot="meta">
${this.hacs.localize(`common.${repo.category}`)}
</ha-chip>
</ha-clickable-list-item>`
)}
</mwc-list>
Expand Down Expand Up @@ -282,6 +282,10 @@ export class HacsAddRepositoryDialog extends HacsDialogBase {
.searchandfilter[narrow] {
flex-direction: column;
}
ha-chip {
margin-left: -52px;
}
`,
];
}
Expand Down
9 changes: 3 additions & 6 deletions src/components/hacs-filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@ export class HacsFilter extends LitElement {
<ha-formfield
class="checkbox"
.label=${this.hacs.localize(`common.${filter.id}`) || filter.value}
.id=${filter.id}
@click=${this._filterClick}
>
<ha-checkbox
.checked=${filter.checked || false}
.id=${filter.id}
@click=${this._filterClick}
>
</ha-checkbox>
<ha-checkbox .checked=${filter.checked || false}> </ha-checkbox>
</ha-formfield>
`
)}
Expand Down

0 comments on commit b39516b

Please sign in to comment.