From 35cff6860778bcb604735df82797605c8e2d614f Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Thu, 30 May 2024 02:07:55 +0300 Subject: [PATCH] Centered week day --- components/lib/datepicker/style/DatePickerStyle.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/components/lib/datepicker/style/DatePickerStyle.js b/components/lib/datepicker/style/DatePickerStyle.js index 2f37275cb..3c3c91c6f 100644 --- a/components/lib/datepicker/style/DatePickerStyle.js +++ b/components/lib/datepicker/style/DatePickerStyle.js @@ -203,9 +203,8 @@ const theme = ({ dt }) => ` width: ${dt('datepicker.date.width')}; height: ${dt('datepicker.date.height')}; border-radius: ${dt('datepicker.date.border.radius')}; - transition: background ${dt('datepicker.transition.duration')}, color ${dt('datepicker.transition.duration')}, border-color ${dt('datepicker.transition.duration')}, box-shadow ${dt('datepicker.transition.duration')}, outline-color ${dt( - 'datepicker.transition.duration' -)}; + transition: background ${dt('datepicker.transition.duration')}, color ${dt('datepicker.transition.duration')}, border-color ${dt('datepicker.transition.duration')}, + box-shadow ${dt('datepicker.transition.duration')}, outline-color ${dt('datepicker.transition.duration')}; border: 1px solid transparent; outline-color: transparent; color: ${dt('datepicker.date.color')}; @@ -237,6 +236,10 @@ const theme = ({ dt }) => ` color: ${dt('datepicker.date.selected.color')}; } +.p-datepicker-weeknumber { + text-align: center +} + .p-datepicker-month-view { margin: ${dt('datepicker.month.view.margin')}; }