Skip to content

Commit

Permalink
fix(styles): calendar updates [ci visual] (#4930)
Browse files Browse the repository at this point in the history
* fix(styles): calendar updates

* fix(styles): snapshots [ci visual]
  • Loading branch information
mikerodonnell89 authored Oct 27, 2023
1 parent 7b9fc95 commit d96e42b
Show file tree
Hide file tree
Showing 13 changed files with 692 additions and 150 deletions.
4 changes: 2 additions & 2 deletions packages/styles/src/calendar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -370,7 +371,6 @@ $fd-calendar-special-days: (

&-button {
min-width: 100%;
min-height: 100%;
padding: 0;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/styles/src/theming/sap_horizon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/src/theming/sap_horizon_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/src/theming/sap_horizon_hcb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/src/theming/sap_horizon_hcw.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 5 additions & 5 deletions packages/styles/stories/Components/calendar/cal.html
Original file line number Diff line number Diff line change
Expand Up @@ -494,30 +494,30 @@
<div class="docs_cal_item_wrapper">
<div class="fd-calendar__item fd-calendar__item--side-helper ">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">M</span>
<span class="fd-calendar__text">Mon</span>
</div>
</div>
</div>
<div class="docs_cal_item_wrapper">
<div class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">M</span>
<span class="fd-calendar__text">Mon</span>
</div>
</div>
</div>
<div class="docs_cal_item_wrapper">
<div class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">M</span>
<span class="fd-calendar__text">Mon</span>
</div>
</div>
</div>
<div class="docs_cal_item_wrapper">
<div class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">M</span>
<span class="fd-calendar__text">Mon</span>
</div>
</div>
</div>
</div>
</section>
</section>
28 changes: 14 additions & 14 deletions packages/styles/stories/Components/calendar/days.example.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,37 +24,37 @@
<th class="fd-calendar__item fd-calendar__item--side-helper"></th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">S</span>
<span class="fd-calendar__text">Sun</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">M</span>
<span class="fd-calendar__text">Mon</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">T</span>
<span class="fd-calendar__text">Tue</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">W</span>
<span class="fd-calendar__text">Wed</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">T</span>
<span class="fd-calendar__text">Thu</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">F</span>
<span class="fd-calendar__text">Fri</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">S</span>
<span class="fd-calendar__text">Sat</span>
</div>
</th>
</tr>
Expand Down Expand Up @@ -300,37 +300,37 @@
<tr class="fd-calendar__row">
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">S</span>
<span class="fd-calendar__text">Sun</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">M</span>
<span class="fd-calendar__text">Mon</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">T</span>
<span class="fd-calendar__text">Tue</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">W</span>
<span class="fd-calendar__text">Wed</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">T</span>
<span class="fd-calendar__text">Thu</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">F</span>
<span class="fd-calendar__text">Fri</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">S</span>
<span class="fd-calendar__text">Sat</span>
</div>
</th>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,37 +45,37 @@ <h2 class="fd-title fd-title--h5" id="dialog-title-2">
<th class="fd-calendar__item fd-calendar__item--side-helper"></th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">S</span>
<span class="fd-calendar__text">Sun</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">M</span>
<span class="fd-calendar__text">Mon</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">T</span>
<span class="fd-calendar__text">Tue</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">W</span>
<span class="fd-calendar__text">Wed</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">T</span>
<span class="fd-calendar__text">Thu</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">F</span>
<span class="fd-calendar__text">Fri</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">S</span>
<span class="fd-calendar__text">Sat</span>
</div>
</th>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,37 +51,37 @@ <h3 class="fd-title fd-title--h5">
<th class="fd-calendar__item fd-calendar__item--side-helper"></th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">S</span>
<span class="fd-calendar__text">Sun</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">M</span>
<span class="fd-calendar__text">Mon</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">T</span>
<span class="fd-calendar__text">Tue</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">W</span>
<span class="fd-calendar__text">Wed</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">T</span>
<span class="fd-calendar__text">Thu</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">F</span>
<span class="fd-calendar__text">Fri</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">S</span>
<span class="fd-calendar__text">Sat</span>
</div>
</th>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,37 +64,37 @@
<th class="fd-calendar__item fd-calendar__item--side-helper"></th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">S</span>
<span class="fd-calendar__text">Sun</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">M</span>
<span class="fd-calendar__text">Mon</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">T</span>
<span class="fd-calendar__text">Tue</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">W</span>
<span class="fd-calendar__text">Wed</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">T</span>
<span class="fd-calendar__text">Thu</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">F</span>
<span class="fd-calendar__text">Fri</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">S</span>
<span class="fd-calendar__text">Sat</span>
</div>
</th>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,37 +51,37 @@
<th class="fd-calendar__item fd-calendar__item--side-helper"></th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">S</span>
<span class="fd-calendar__text">Sun</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">M</span>
<span class="fd-calendar__text">Mon</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">T</span>
<span class="fd-calendar__text">Tue</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">W</span>
<span class="fd-calendar__text">Wed</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">T</span>
<span class="fd-calendar__text">Thu</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">F</span>
<span class="fd-calendar__text">Fri</span>
</div>
</th>
<th class="fd-calendar__item fd-calendar__item--side-helper">
<div class="fd-calendar__text-wrapper">
<span class="fd-calendar__text">S</span>
<span class="fd-calendar__text">Sat</span>
</div>
</th>
</tr>
Expand Down
Loading

0 comments on commit d96e42b

Please sign in to comment.