Skip to content

Commit

Permalink
refactor(datepicker): use same style for days as months and years
Browse files Browse the repository at this point in the history
  • Loading branch information
dpellier committed Jul 29, 2024
1 parent f506eed commit 877cad2
Showing 1 changed file with 13 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ $ods-datepicker-clearable-button-size: input.$ods-input-actions-button-width;
height: $ods-datepicker-item-size;

&:not(.disabled) {
&:not(.focused) {
color: var(--ods-color-primary-500);
color: var(--ods-color-primary-500);

&:hover {
background-color: var(--ods-color-primary-200);
}
&:not(.selected):hover {
background-color: var(--ods-color-primary-200);
}
}

Expand All @@ -25,6 +23,14 @@ $ods-datepicker-clearable-button-size: input.$ods-input-actions-button-width;
}

&.focused {
@include focus.ods-focus();

z-index: 1;
outline-offset: 0;
background-color: inherit;
}

&.selected {
background-color: var(--ods-color-primary-800);
color: var(--ods-color-primary-000);
}
Expand Down Expand Up @@ -185,38 +191,17 @@ $ods-datepicker-clearable-button-size: input.$ods-input-actions-button-width;

.datepicker-grid {
.day {
@include custom-view();

border-radius: 50%;
font-weight: 600;

&:not(.disabled) {
color: var(--ods-color-primary-500);

&:not(.selected):hover {
background-color: var(--ods-color-primary-200);
}

&.next,
&.prev {
opacity: .5;
}
}

&.disabled {
cursor: not-allowed;
}

&.focused {
@include focus.ods-focus();

z-index: 1;
outline-offset: 0;
background-color: inherit;
}

&.selected {
background-color: var(--ods-color-primary-800);
color: var(--ods-color-primary-000);
}
}
}
}
Expand Down

0 comments on commit 877cad2

Please sign in to comment.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy