diff --git a/packages/styles/src/calendar.scss b/packages/styles/src/calendar.scss index 99cce6d6d0..8802eb0150 100644 --- a/packages/styles/src/calendar.scss +++ b/packages/styles/src/calendar.scss @@ -145,7 +145,6 @@ $fd-calendar-special-days: ( overflow: hidden; position: relative; - height: var(--fdCalendar_Item_Height); margin: var(--fdCalendar_Item_Spacing); min-width: var(--fdCalendar_Item_Width); border-radius: var(--fdCalendar_Border_Radius); @@ -247,6 +246,8 @@ $fd-calendar-special-days: ( &__item { @extend %fd-calendar-item; + height: var(--fdCalendar_Item_Height); + @include fd-hover() { --fdCalendar_Item_Background: var(--sapList_Hover_Background); } @@ -370,7 +371,6 @@ $fd-calendar-special-days: ( &-button { min-width: 100%; - min-height: 100%; padding: 0; } diff --git a/packages/styles/src/theming/sap_horizon.scss b/packages/styles/src/theming/sap_horizon.scss index 9bc45ff35a..e7a385d39c 100644 --- a/packages/styles/src/theming/sap_horizon.scss +++ b/packages/styles/src/theming/sap_horizon.scss @@ -126,7 +126,7 @@ /* Calendar */ --fdCalendar_Text_Shadow: none; - --fdCalendar_Active_Item_Border: 0.0625rem solid var(--sapList_SelectionBorderColor); + --fdCalendar_Active_Item_Border: 0.125rem solid var(--sapList_SelectionBorderColor); --fdCalendar_Active_Focus_Item_Outline_Color: var(--sapList_SelectionBorderColor); --fdCalendar_Active_Focus_Item_Outline_Offset: -0.375rem; --fdCalendar_Item_Current_Border: none; diff --git a/packages/styles/src/theming/sap_horizon_dark.scss b/packages/styles/src/theming/sap_horizon_dark.scss index 2bcfbda93d..ddd37312f3 100644 --- a/packages/styles/src/theming/sap_horizon_dark.scss +++ b/packages/styles/src/theming/sap_horizon_dark.scss @@ -135,7 +135,7 @@ /* Calendar */ --fdCalendar_Text_Shadow: none; - --fdCalendar_Active_Item_Border: 0.0625rem solid var(--sapList_SelectionBorderColor); + --fdCalendar_Active_Item_Border: 0.125rem solid var(--sapList_SelectionBorderColor); --fdCalendar_Active_Focus_Item_Outline_Color: var(--sapList_SelectionBorderColor); --fdCalendar_Active_Focus_Item_Outline_Offset: -0.375rem; --fdCalendar_Item_Current_Border: none; diff --git a/packages/styles/src/theming/sap_horizon_hcb.scss b/packages/styles/src/theming/sap_horizon_hcb.scss index 287029e403..c12f1dbc7a 100644 --- a/packages/styles/src/theming/sap_horizon_hcb.scss +++ b/packages/styles/src/theming/sap_horizon_hcb.scss @@ -125,7 +125,7 @@ /* Calendar */ --fdCalendar_Text_Shadow: none; - --fdCalendar_Active_Item_Border: 0.0625rem solid var(--sapList_SelectionBorderColor); + --fdCalendar_Active_Item_Border: 0.125rem solid var(--sapList_SelectionBorderColor); --fdCalendar_Active_Focus_Item_Outline_Color: var(--sapList_SelectionBorderColor); --fdCalendar_Active_Focus_Item_Outline_Offset: -0.375rem; --fdCalendar_Item_Current_Border: none; diff --git a/packages/styles/src/theming/sap_horizon_hcw.scss b/packages/styles/src/theming/sap_horizon_hcw.scss index 5d83d0c95a..f7ce0e2d29 100644 --- a/packages/styles/src/theming/sap_horizon_hcw.scss +++ b/packages/styles/src/theming/sap_horizon_hcw.scss @@ -126,7 +126,7 @@ /* Calendar */ --fdCalendar_Text_Shadow: none; - --fdCalendar_Active_Item_Border: 0.0625rem solid var(--sapList_SelectionBorderColor); + --fdCalendar_Active_Item_Border: 0.125rem solid var(--sapList_SelectionBorderColor); --fdCalendar_Active_Focus_Item_Outline_Color: var(--sapList_SelectionBorderColor); --fdCalendar_Active_Focus_Item_Outline_Offset: -0.375rem; --fdCalendar_Item_Current_Border: none; diff --git a/packages/styles/stories/Components/calendar/cal.html b/packages/styles/stories/Components/calendar/cal.html index 179fe91fc9..91cb9754c3 100644 --- a/packages/styles/stories/Components/calendar/cal.html +++ b/packages/styles/stories/Components/calendar/cal.html @@ -494,30 +494,30 @@
- M + Mon
- M + Mon
- M + Mon
- M + Mon
- \ No newline at end of file + diff --git a/packages/styles/stories/Components/calendar/days.example.html b/packages/styles/stories/Components/calendar/days.example.html index 911f7c5a01..e3042911ef 100644 --- a/packages/styles/stories/Components/calendar/days.example.html +++ b/packages/styles/stories/Components/calendar/days.example.html @@ -24,37 +24,37 @@
- S + Sun
- M + Mon
- T + Tue
- W + Wed
- T + Thu
- F + Fri
- S + Sat
@@ -300,37 +300,37 @@
- S + Sun
- M + Mon
- T + Tue
- W + Wed
- T + Thu
- F + Fri
- S + Sat
diff --git a/packages/styles/stories/Patterns/datepicker/mobile-landscape.example.html b/packages/styles/stories/Patterns/datepicker/mobile-landscape.example.html index aa74019207..c9c5fe27c7 100644 --- a/packages/styles/stories/Patterns/datepicker/mobile-landscape.example.html +++ b/packages/styles/stories/Patterns/datepicker/mobile-landscape.example.html @@ -45,37 +45,37 @@

- S + Sun
- M + Mon
- T + Tue
- W + Wed
- T + Thu
- F + Fri
- S + Sat
diff --git a/packages/styles/stories/Patterns/datepicker/mobile-portrait.example.html b/packages/styles/stories/Patterns/datepicker/mobile-portrait.example.html index 706e88c455..bc2e80f1d5 100644 --- a/packages/styles/stories/Patterns/datepicker/mobile-portrait.example.html +++ b/packages/styles/stories/Patterns/datepicker/mobile-portrait.example.html @@ -51,37 +51,37 @@

- S + Sun
- M + Mon
- T + Tue
- W + Wed
- T + Thu
- F + Fri
- S + Sat
diff --git a/packages/styles/stories/Patterns/datepicker/today-navigation-button.example.html b/packages/styles/stories/Patterns/datepicker/today-navigation-button.example.html index 7d0170e8d8..d433a43cb0 100644 --- a/packages/styles/stories/Patterns/datepicker/today-navigation-button.example.html +++ b/packages/styles/stories/Patterns/datepicker/today-navigation-button.example.html @@ -64,37 +64,37 @@
- S + Sun
- M + Mon
- T + Tue
- W + Wed
- T + Thu
- F + Fri
- S + Sat
diff --git a/packages/styles/stories/Patterns/datepicker/today-selection-button.example.html b/packages/styles/stories/Patterns/datepicker/today-selection-button.example.html index 99309710aa..35e842a649 100644 --- a/packages/styles/stories/Patterns/datepicker/today-selection-button.example.html +++ b/packages/styles/stories/Patterns/datepicker/today-selection-button.example.html @@ -51,37 +51,37 @@
- S + Sun
- M + Mon
- T + Tue
- W + Wed
- T + Thu
- F + Fri
- S + Sat
diff --git a/packages/styles/tests/__snapshots__/styles.test.ts.snap b/packages/styles/tests/__snapshots__/styles.test.ts.snap index e1ee662425..6104232102 100644 --- a/packages/styles/tests/__snapshots__/styles.test.ts.snap +++ b/packages/styles/tests/__snapshots__/styles.test.ts.snap @@ -9812,33 +9812,34 @@ exports[`Check stories > Components/Calendar > Story CalendarDays > Should match
- M + Mon
- M + Mon
- M + Mon
- M + Mon
-" + +" `; exports[`Check stories > Components/Calendar > Story Days > Should match snapshot 1`] = ` @@ -9868,37 +9869,37 @@ exports[`Check stories > Components/Calendar > Story Days > Should match snapsho
- S + Sun
- M + Mon
- T + Tue
- W + Wed
- T + Thu
- F + Fri
- S + Sat
@@ -10144,37 +10145,37 @@ exports[`Check stories > Components/Calendar > Story Days > Should match snapsho
- S + Sun
- M + Mon
- T + Tue
- W + Wed
- T + Thu
- F + Fri
- S + Sat
@@ -33569,57 +33570,417 @@ exports[`Check stories > Components/Rating Indicator > Story DifferentValues > S exports[`Check stories > Components/Rating Indicator > Story Disabled > Should match snapshot 1`] = ` "
+

Default:

- - + + - + - + - + - + - +
(2 of 5)
+
+

Default:

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ (2 of 5) +
+
" `; exports[`Check stories > Components/Rating Indicator > Story DisplayMode > Should match snapshot 1`] = ` "
-
-
- - +

Default:

+
+
+ + - - + + - - + + - - + + - - + + - - -
- (2 of 5) + + +
+ (2 of 5) +
+
+
+

Half values:

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ (2.5 of 5)
+
" `; @@ -33811,29 +34172,210 @@ exports[`Check stories > Components/Rating Indicator > Story HalfValues > Should exports[`Check stories > Components/Rating Indicator > Story NonInteractive > Should match snapshot 1`] = ` "
-
-
- - +

Default:

+
+
+ + - - + + - - + + - - + + - - + + - - -
- (2 of 5) + +
+ (2 of 5)
+
+ +
+

Half values:

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ (2.5 of 5) +
+
" `; @@ -54133,37 +54675,37 @@ exports[`Check stories > Patterns/Date Picker > Story MobileLandscape > Should m
- S + Sun
- M + Mon
- T + Tue
- W + Wed
- T + Thu
- F + Fri
- S + Sat
@@ -54453,37 +54995,37 @@ exports[`Check stories > Patterns/Date Picker > Story MobilePortrait > Should ma
- S + Sun
- M + Mon
- T + Tue
- W + Wed
- T + Thu
- F + Fri
- S + Sat
@@ -54787,37 +55329,37 @@ exports[`Check stories > Patterns/Date Picker > Story TodayNavigationButton > Sh
- S + Sun
- M + Mon
- T + Tue
- W + Wed
- T + Thu
- F + Fri
- S + Sat
@@ -55099,37 +55641,37 @@ exports[`Check stories > Patterns/Date Picker > Story TodaySelectionButton > Sho
- S + Sun
- M + Mon
- T + Tue
- W + Wed
- T + Thu
- F + Fri
- S + Sat
diff --git a/packages/theming-preview/src/calendar.html b/packages/theming-preview/src/calendar.html index 61bf7fbf3a..bc813cb48b 100644 --- a/packages/theming-preview/src/calendar.html +++ b/packages/theming-preview/src/calendar.html @@ -55,37 +55,37 @@

Calendar

- S + Sun
- M + Mon
- T + Tue
- W + Wed
- T + Thu
- F + Fri
- S + Sat
@@ -404,9 +404,9 @@

Calendar

- -     - + +     +
@@ -541,5 +541,5 @@

Calendar

- +