From 85e4eb7c84b7f6378ec179f270f516968715dcee Mon Sep 17 00:00:00 2001 From: Jeri Peier Date: Thu, 14 Dec 2023 15:49:12 +0100 Subject: [PATCH] fix(sbb-calendar): always display header centered (#2293) --- src/components/calendar/calendar.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/calendar/calendar.scss b/src/components/calendar/calendar.scss index 6ebfe077ed..00dbfa5494 100644 --- a/src/components/calendar/calendar.scss +++ b/src/components/calendar/calendar.scss @@ -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 {