Skip to content

Commit

Permalink
refactor(calendar): adding actions divider color for dark themes
Browse files Browse the repository at this point in the history
  • Loading branch information
desig9stein committed Mar 20, 2024
1 parent eba635f commit d647317
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
21 changes: 21 additions & 0 deletions sass/themes/schemas/components/dark/_calendar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/// @prop {Map} date-selected-range-hover-foreground [contrast-color: ('secondary', 900)] - The :hover foreground color of the selected range.
/// @prop {Map} picker-hover-foreground [color: 'secondary' 200] - The :hover foreground color of the month and year pickers.
/// @prop {Map} picker-focus-foreground [color: 'secondary' 200] - The :focus foreground color of the month and year pickers.
/// @prop {Map} actions-divider-color [color: ('gray', 100)] - The border color used for the date-picker actions divider.
/// @type {Map}
/// @requires $material-calendar
$dark-material-calendar: extend(
Expand Down Expand Up @@ -104,6 +105,12 @@ $dark-material-calendar: extend(
200,
),
),
actions-divider-color: (
color: (
'gray',
100,
),
),
)
);

Expand Down Expand Up @@ -147,6 +154,7 @@ $dark-material-calendar: extend(
/// @prop {Map} date-special-range-border-color [color: ('primary', 50)] - The outline color around a special date in a range selection.
/// @prop {Map} header-foreground [contrast-color: ('primary', 200)] - The header foreground color.
/// @prop {Map} header-background [color: ('primary', 200)] - The background color of the month and year pickers.
/// @prop {Мap} actions-divider-color [color: ('gray', 100)] - The border color used for the date-picker actions divider.
/// @requires $fluent-calendar
$dark-fluent-calendar: extend(
$fluent-calendar,
Expand Down Expand Up @@ -379,6 +387,12 @@ $dark-fluent-calendar: extend(
300,
),
),
actions-divider-color: (
color: (
'gray',
100,
),
),
)
);

Expand Down Expand Up @@ -510,6 +524,7 @@ $dark-bootstrap-calendar: extend(
/// @prop {Map} date-special-focus-background [color: ('primary', 600)] - The background color of a special date.
/// @prop {Map} navigation-hover-color [color: ('primary', 300)] - The :hover color of the icon button responsible for month navigation.
/// @prop {Map} navigation-focus-color [color: ('primary', 300)] - The :focus color of the icon button responsible for month navigation.
/// @prop {Мап} actions-divider-color [color: ('gray', 100)] - The border color used for the date-picker actions divider.
/// @requires $indigo-calendar
$dark-indigo-calendar: extend(
$indigo-calendar,
Expand Down Expand Up @@ -630,5 +645,11 @@ $dark-indigo-calendar: extend(
300,
),
),
actions-divider-color: (
color: (
'gray',
100,
),
),
)
);
8 changes: 4 additions & 4 deletions sass/themes/schemas/components/light/_calendar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ $light-calendar: (
/// @prop {Map} date-selected-current-hover-border-color [color: ('gray', 900)] - The :hover border color of the selected current date.
/// @prop {Map} date-selected-current-focus-border-color [color: ('gray', 900)] - The :focus border color of the selected current date.
/// @prop {List} week-number-border-radius [(rem(4px), rem(0), rem(8px))] - The border radius used for the week numbers column.
/// @prop {List} actions-divider-color [color: ('gray', 200)] - The border color used for the date-picker actions divider.
/// @prop {Map} actions-divider-color [color: ('gray', 200)] - The border color used for the date-picker actions divider.
/// @requires $light-calendar
$material-calendar: extend(
$light-calendar,
Expand Down Expand Up @@ -918,7 +918,7 @@ $material-calendar: extend(
/// @prop {List} week-number-border-radius [(rem(0), rem(0), rem(8px))] - The border radius used for the week numbers column.
/// @prop {List} size [(rem(28px), rem(32px), rem(40px))] - The size of the days, months, and years views.
/// @prop {List} inner-size [(rem(24px), rem(28px), rem(32px))] - The size of the inner element of a date(often used to outline the special date)
/// @prop {List} actions-divider-color [color: ('gray', 200)] - The border color used for the date-picker actions divider.
/// @prop {Map} actions-divider-color [color: ('gray', 200)] - The border color used for the date-picker actions divider.
/// @requires {Map} $light-calendar
$fluent-calendar: extend(
$light-calendar,
Expand Down Expand Up @@ -1540,7 +1540,7 @@ $fluent-calendar: extend(
/// @prop {Map} date-selected-current-border-color [color: ('gray', 900)] - The border color of the selected current date.
/// @prop {Map} date-selected-current-hover-border-color [color: ('gray', 900)] - The :hover border color of the selected current date.
/// @prop {Map} date-selected-current-focus-border-color [color: ('gray', 900)] - The :focus border color of the selected current date.
/// @prop {List} actions-divider-color [color: ('gray', 300)] - The border color used for the date-picker actions divider.
/// @prop {Map} actions-divider-color [color: ('gray', 300)] - The border color used for the date-picker actions divider.
/// @requires {Map} $light-calendar
$bootstrap-calendar: extend(
$light-calendar,
Expand Down Expand Up @@ -2167,7 +2167,7 @@ $bootstrap-calendar: extend(
/// @prop {Map} selected-current-hover-outline-color [contrast-color: ('gray', 900, .6)] - The :hover outline color of the selected current year/month in year/month views.
/// @prop {Map} selected-current-focus-outline-color [contrast-color: ('gray', 900, .6)] - The :focus outline color of the selected current year/month in year/month views.
/// @prop {List} inner-size [(rem(24px), rem(28px), rem(32px))] - The size of the inner element of a date(often used to outline the special date)
/// @prop {List} actions-divider-color [color: ('gray', 400)] - The border color used for the date-picker actions divider.
/// @prop {Map} actions-divider-color [color: ('gray', 400)] - The border color used for the date-picker actions divider.
/// @requires {Map} $light-calendar
$indigo-calendar: extend(
$light-calendar,
Expand Down

0 comments on commit d647317

Please sign in to comment.