Skip to content

Commit

Permalink
fix(sbb-calendar): align month view label (#2564)
Browse files Browse the repository at this point in the history
fix: set colspan properly
  • Loading branch information
MarioCastigliano authored Apr 9, 2024
1 parent 2bfb4e2 commit 0215e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ export class SbbCalendarElement<T = Date> extends LitElement {
${this._wide
? html`<thead class="sbb-calendar__table-header" aria-hidden="true">
<tr class="sbb-calendar__table-header-row">
<th class="sbb-calendar__table-header" .colspan=${MONTHS_PER_ROW}>${year}</th>
<th class="sbb-calendar__table-header" colspan=${MONTHS_PER_ROW}>${year}</th>
</tr>
</thead>`
: nothing}
Expand Down

0 comments on commit 0215e00

Please sign in to comment.