Skip to content

Commit

Permalink
fix(styles): inconsistent cell size when selection mode is set (#2601)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl authored Nov 24, 2024
1 parent 038659d commit 10bbecb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
--rdp-accent-color: blue; /* The accent color used for selected days and UI elements. */
--rdp-accent-background-color: #f0f0ff; /* The accent background color used for selected days and UI elements. */

--rdp-day-height: 2.75rem; /* The height of the day cells. */
--rdp-day-width: 2.75rem; /* The width of the day cells. */
--rdp-day-height: 44px; /* The height of the day cells. */
--rdp-day-width: 44px; /* The width of the day cells. */

--rdp-day_button-border-radius: 100%; /* The border radius of the day cells. */
--rdp-day_button-border: 2px solid transparent; /* The border of the day cells. */
--rdp-day_button-height: var(--rdp-day-height); /* The height of the day cells. */
--rdp-day_button-width: var(--rdp-day-width); /* The width of the day cells. */
--rdp-day_button-height: 42px; /* The height of the day cells. */
--rdp-day_button-width: 42px; /* The width of the day cells. */

--rdp-selected-border: 2px solid var(--rdp-accent-color); /* The border of the selected days. */
--rdp-disabled-opacity: 0.5; /* The opacity of the disabled days. */
Expand Down
8 changes: 4 additions & 4 deletions src/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
--rdp-accent-color: blue; /* The accent color used for selected days and UI elements. */
--rdp-accent-background-color: #f0f0ff; /* The accent background color used for selected days and UI elements. */

--rdp-day-height: 2.75rem; /* The height of the day cells. */
--rdp-day-width: 2.75rem; /* The width of the day cells. */
--rdp-day-height: 44px; /* The height of the day cells. */
--rdp-day-width: 44px; /* The width of the day cells. */

--rdp-day_button-border-radius: 100%; /* The border radius of the day cells. */
--rdp-day_button-border: 2px solid transparent; /* The border of the day cells. */
--rdp-day_button-height: var(--rdp-day-height); /* The height of the day cells. */
--rdp-day_button-width: var(--rdp-day-width); /* The width of the day cells. */
--rdp-day_button-height: 42px; /* The height of the day cells. */
--rdp-day_button-width: 42px; /* The width of the day cells. */

--rdp-selected-border: 2px solid var(--rdp-accent-color); /* The border of the selected days. */
--rdp-disabled-opacity: 0.5; /* The opacity of the disabled days. */
Expand Down
8 changes: 4 additions & 4 deletions website/docs/docs/styling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ The following table lists the CSS variables used by DayPicker within the `.rdp-r
| ----------------------------------------- | -------------------------------------------------------------------- |
| `--rdp-accent-color` | The accent color used for selected days and UI elements. |
| `--rdp-accent-background-color` | The accent background color used for selected days and UI elements. |
| `--rdp-day-height` | The height of the day cells. |
| `--rdp-day-width` | The width of the day cells. |
| `--rdp-day-height` | The height of the day cells (default: `44px`). |
| `--rdp-day-width` | The width of the day cells (default: `44px`). |
| `--rdp-chevron-disabled-opacity` | The opacity of the chevron when its container is disabled. |
| `--rdp-day_button-border-radius` | The border radius of the day cells. |
| `--rdp-day_button-border` | The border of the day cells. |
| `--rdp-day_button-height` | The height of the day cells. |
| `--rdp-day_button-width` | The width of the day cells. |
| `--rdp-day_button-height` | The height of the day cells (default: `42px`). |
| `--rdp-day_button-width` | The width of the day cells (default: `42px`). |
| `--rdp-selected-border` | The border of the selected days. |
| `--rdp-disabled-opacity` | The opacity of the disabled days. |
| `--rdp-outside-opacity` | The opacity of the days outside the current month. |
Expand Down

0 comments on commit 10bbecb

Please sign in to comment.