Add labelled wrapper for budgets list

This commit is contained in:
Mikko Ahlroth 2019-06-25 15:40:57 +03:00
parent b96a1532be
commit d892f6bc00

View file

@ -14,14 +14,14 @@ class BudgetListComponent extends LitElement {
static get styles() {
return css`
:host {
#list {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
${MOB_BP} {
:host {
#list {
grid-template-columns: auto;
}
}
@ -36,7 +36,9 @@ class BudgetListComponent extends LitElement {
render() {
return html`
${this.budgets.map(b => html`<budget-display .budget=${b}></budget-display>`)}
<div id="list" aria-label="List of budgets">
${this.budgets.map(b => html`<budget-display .budget=${b}></budget-display>`)}
</div>
`
}
}