Skip to content

Commit

Permalink
fix(sbb-calendar): always display header centered (#2293)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB authored Dec 14, 2023
1 parent db5116e commit 85e4eb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/calendar/calendar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@
width: var(--sbb-calendar-cell-size);
padding: 0;
padding-block-end: var(--sbb-spacing-fixed-4x);

// Depending where in the DOM it's used, it's possible that browser defaults set text-align to left.
text-align: center;
}

.sbb-calendar__table-data {
Expand Down

0 comments on commit 85e4eb7

Please sign in to comment.