Skip to content

PLASMA-7942: add custom radiuses for selected range dates - #3026

Open
TitanKuzmich wants to merge 3 commits into
devfrom
PLASMA-7942
Open

PLASMA-7942: add custom radiuses for selected range dates#3026
TitanKuzmich wants to merge 3 commits into
devfrom
PLASMA-7942

Conversation

@TitanKuzmich

@TitanKuzmich TitanKuzmich commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Core

Calendar, DatePicker

  • добавлена возможность в конфиге указать кастомные скругления для крайних дат периода
  • добавлена возможность в конфиге указать цвет фона и курсор выбранного дня при наведении
  • добавлены токены для управления отступами между строками календарной сетки и токен управления размером иконки у подписи даты

What/why changed

  • добавлена возможность в конфиге указать кастомные скругления для крайних дат периода
  • добавлена возможность в конфиге указать цвет фона и курсор выбранного дня при наведении
  • добавлены токены для управления отступами между строками календарной сетки и токен управления размером иконки у подписи даты
calendar

Summary by CodeRabbit

  • Enhancements
    • Improved calendar and date picker range styling with configurable start and end corner radii.
    • Added customizable hover backgrounds and cursor behavior for selected dates.
    • Improved handling of single-day selections and range segment styling.
    • Added configurable spacing between calendar grid rows across year, quarter, month, and day views.
    • Standardized calendar navigation arrow sizing across calendar, date picker, and date-time picker sizes.
    • Applied the updated selection styling consistently across calendar and picker components.
📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @salutejs/plasma-asdk@0.387.0-canary.3026.31178180335.0
npm install @salutejs/plasma-b2c@1.629.0-canary.3026.31178180335.0
npm install @salutejs/plasma-colors@0.18.0-canary.3026.31178180335.0
npm install @salutejs/plasma-core@1.236.0-canary.3026.31178180335.0
npm install @salutejs/plasma-giga@0.356.0-canary.3026.31178180335.0
npm install @salutejs/plasma-homeds@0.356.0-canary.3026.31178180335.0
npm install @salutejs/plasma-hope@1.383.0-canary.3026.31178180335.0
npm install @salutejs/plasma-icons@1.245.0-canary.3026.31178180335.0
npm install @salutejs/plasma-new-hope@0.373.0-canary.3026.31178180335.0
npm install @salutejs/plasma-tokens@1.147.0-canary.3026.31178180335.0
npm install @salutejs/plasma-tokens-b2b@1.61.0-canary.3026.31178180335.0
npm install @salutejs/plasma-tokens-b2c@0.72.0-canary.3026.31178180335.0
npm install @salutejs/plasma-tokens-core@0.9.0-canary.3026.31178180335.0
npm install @salutejs/plasma-tokens-web@1.76.0-canary.3026.31178180335.0
npm install @salutejs/plasma-typo@0.49.0-canary.3026.31178180335.0
npm install @salutejs/plasma-web@1.631.0-canary.3026.31178180335.0
npm install @salutejs/sdds-bizcom@0.361.0-canary.3026.31178180335.0
npm install @salutejs/sdds-cs@0.365.0-canary.3026.31178180335.0
npm install @salutejs/sdds-dfa@0.359.0-canary.3026.31178180335.0
npm install @salutejs/sdds-finai@0.352.0-canary.3026.31178180335.0
npm install @salutejs/sdds-insol@0.356.0-canary.3026.31178180335.0
npm install @salutejs/sdds-insol-next@0.355.0-canary.3026.31178180335.0
npm install @salutejs/sdds-netology@0.360.0-canary.3026.31178180335.0
npm install @salutejs/sdds-os@0.31.0-canary.3026.31178180335.0
npm install @salutejs/sdds-platform-ai@0.360.0-canary.3026.31178180335.0
npm install @salutejs/sdds-sbcom@0.361.0-canary.3026.31178180335.0
npm install @salutejs/sdds-scan@0.359.0-canary.3026.31178180335.0
npm install @salutejs/sdds-serv@0.360.0-canary.3026.31178180335.0
npm install @salutejs/core-themes@0.37.0-canary.3026.31178180335.0
npm install @salutejs/plasma-themes@0.59.0-canary.3026.31178180335.0
npm install @salutejs/sdds-themes@0.74.0-canary.3026.31178180335.0
npm install @salutejs/sdds-api-tests@0.18.0-canary.3026.31178180335.0
npm install @salutejs/plasma-cy-utils@0.166.0-canary.3026.31178180335.0
npm install @salutejs/plasma-sb-utils@0.237.0-canary.3026.31178180335.0
npm install @salutejs/plasma-tokens-utils@0.57.0-canary.3026.31178180335.0
# or 
yarn add @salutejs/plasma-asdk@0.387.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-b2c@1.629.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-colors@0.18.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-core@1.236.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-giga@0.356.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-homeds@0.356.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-hope@1.383.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-icons@1.245.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-new-hope@0.373.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-tokens@1.147.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-tokens-b2b@1.61.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-tokens-b2c@0.72.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-tokens-core@0.9.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-tokens-web@1.76.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-typo@0.49.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-web@1.631.0-canary.3026.31178180335.0
yarn add @salutejs/sdds-bizcom@0.361.0-canary.3026.31178180335.0
yarn add @salutejs/sdds-cs@0.365.0-canary.3026.31178180335.0
yarn add @salutejs/sdds-dfa@0.359.0-canary.3026.31178180335.0
yarn add @salutejs/sdds-finai@0.352.0-canary.3026.31178180335.0
yarn add @salutejs/sdds-insol@0.356.0-canary.3026.31178180335.0
yarn add @salutejs/sdds-insol-next@0.355.0-canary.3026.31178180335.0
yarn add @salutejs/sdds-netology@0.360.0-canary.3026.31178180335.0
yarn add @salutejs/sdds-os@0.31.0-canary.3026.31178180335.0
yarn add @salutejs/sdds-platform-ai@0.360.0-canary.3026.31178180335.0
yarn add @salutejs/sdds-sbcom@0.361.0-canary.3026.31178180335.0
yarn add @salutejs/sdds-scan@0.359.0-canary.3026.31178180335.0
yarn add @salutejs/sdds-serv@0.360.0-canary.3026.31178180335.0
yarn add @salutejs/core-themes@0.37.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-themes@0.59.0-canary.3026.31178180335.0
yarn add @salutejs/sdds-themes@0.74.0-canary.3026.31178180335.0
yarn add @salutejs/sdds-api-tests@0.18.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-cy-utils@0.166.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-sb-utils@0.237.0-canary.3026.31178180335.0
yarn add @salutejs/plasma-tokens-utils@0.57.0-canary.3026.31178180335.0

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Calendar components now support configurable grid row gaps, header arrow sizes, selected-item hover styles, and separate range-side radii. Theme configurations provide arrow sizes for supported component variants. Zero-length ranges no longer receive an endpoint side.

Changes

Calendar token and selection styling

Layer / File(s) Summary
Token contracts and wiring
packages/plasma-new-hope/src/components/Calendar/*, packages/plasma-new-hope/src/components/DatePicker/*, packages/plasma-new-hope/src/components/DateTimePicker/*
Adds row-gap, header arrow-size, selected-item hover, cursor, and range-radius tokens. Maps the tokens into calendar styles.
Range-side classification and radii
packages/plasma-new-hope/src/components/Calendar/utils/calendarRangeHelper.ts, packages/plasma-new-hope/src/components/Calendar/ui/DateStructureItem/*
Handles zero-length ranges without an endpoint side. Adds left and right range classes and applies separate configurable border radii.
Selected-item hover behavior
packages/plasma-new-hope/src/components/Calendar/mixins/selected.ts, packages/plasma-new-hope/src/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.ts
Applies configured hover background and cursor values to selected items and their inner elements.
Header sizing and grid spacing
packages/plasma-new-hope/src/components/Calendar/ui/CalendarHeader/*, packages/plasma-new-hope/src/components/Calendar/ui/Calendar{Days,Months,Quarters,Years}/*, packages/plasma-new-hope/src/components/_Icon/Icons/IconDisclosureDownFill.tsx
Removes the header size prop. Uses sizeCustomProperty for arrow sizing and token-based row gaps for calendar grids.
Theme arrow-size configuration
packages/plasma-b2c/src/components/**, packages/plasma-giga/src/components/**, packages/plasma-homeds/src/components/**, packages/plasma-web/src/components/**, packages/sdds-*/src/components/**
Adds calendarHeaderArrowSize values to Calendar, CalendarDouble, DatePicker, and DateTimePicker size configurations.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

Suggested reviewers: yakutoc, oki1oki

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: adding custom border radii for selected date ranges.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch PLASMA-7942

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Theme Builder app deployed!

https://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-3026/

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Documentation preview deployed!

website: https://plasma.sberdevices.ru/pr/pr-3026/
asdk storybook: https://plasma.sberdevices.ru/pr/pr-3026/asdk-storybook/
b2c storybook: https://plasma.sberdevices.ru/pr/pr-3026/b2c-storybook/
giga storybook: https://plasma.sberdevices.ru/pr/pr-3026/giga-storybook/
homeds storybook: https://plasma.sberdevices.ru/pr/pr-3026/homeds-storybook/
new-hope storybook: https://plasma.sberdevices.ru/pr/pr-3026/new-hope-storybook/
web storybook: https://plasma.sberdevices.ru/pr/pr-3026/web-storybook/
sdds-bizcom storybook: https://plasma.sberdevices.ru/pr/pr-3026/sdds-bizcom-storybook/
sdds-cs storybook: https://plasma.sberdevices.ru/pr/pr-3026/sdds-cs-storybook/
sdds-dfa storybook: https://plasma.sberdevices.ru/pr/pr-3026/sdds-dfa-storybook/
sdds-finai storybook: https://plasma.sberdevices.ru/pr/pr-3026/sdds-finai-storybook/
sdds-insol storybook: https://plasma.sberdevices.ru/pr/pr-3026/sdds-insol-storybook/
sdds-insol-next storybook: https://plasma.sberdevices.ru/pr/pr-3026/sdds-insol-next-storybook/
sdds-netology storybook: https://plasma.sberdevices.ru/pr/pr-3026/sdds-netology-storybook/
sdds-os storybook: https://plasma.sberdevices.ru/pr/pr-3026/sdds-os-storybook/
sdds-platform-ai storybook: https://plasma.sberdevices.ru/pr/pr-3026/sdds-platform-ai-storybook/
sdds-sbcom storybook: https://plasma.sberdevices.ru/pr/pr-3026/sdds-sbcom-storybook/
sdds-scan storybook: https://plasma.sberdevices.ru/pr/pr-3026/sdds-scan-storybook/
sdds-serv storybook: https://plasma.sberdevices.ru/pr/pr-3026/sdds-serv-storybook/

@TitanKuzmich
TitanKuzmich marked this pull request as ready for review August 7, 2026 07:09
@TitanKuzmich
TitanKuzmich requested review from Yakutoc and oki1oki August 7, 2026 07:17

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/plasma-new-hope/src/components/Calendar/mixins/selected.ts`:
- Around line 109-114: Update the nested current-and-selected hover branch in
the selected styling mixin to also apply selectedCursorOnHover alongside
selectedBackgroundHover. Keep the existing behavior for non-current selected
items unchanged.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 850b1c49-1131-47ec-a3bb-b38a4d1e8e0a

📥 Commits

Reviewing files that changed from the base of the PR and between 54970bf and 7641272.

📒 Files selected for processing (7)
  • packages/plasma-new-hope/src/components/Calendar/Calendar.tokens.ts
  • packages/plasma-new-hope/src/components/Calendar/mixins/selected.ts
  • packages/plasma-new-hope/src/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.ts
  • packages/plasma-new-hope/src/components/Calendar/ui/DateStructureItem/DateStructureItem.tsx
  • packages/plasma-new-hope/src/components/Calendar/utils/calendarRangeHelper.ts
  • packages/plasma-new-hope/src/components/DatePicker/DatePicker.tokens.ts
  • packages/plasma-new-hope/src/components/DatePicker/DatePickerBase.styles.ts

Comment thread packages/plasma-new-hope/src/components/Calendar/mixins/selected.ts

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@packages/plasma-new-hope/src/components/DateTimePicker/DateTimePicker.tokens.ts`:
- Around line 238-239: Update the custom-property names assigned to
calendarSelectedItemBackgroundHover and calendarSelectedItemHoverCursor in the
DateTimePicker token definitions to use the --plasma-date-time-picker-calendar__
namespace, matching the surrounding tokens and CalendarGrid.styles.ts consumer.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 66c62e7e-f88d-4bc5-b65f-0472f1144679

📥 Commits

Reviewing files that changed from the base of the PR and between 7641272 and b2a44d4.

📒 Files selected for processing (76)
  • packages/plasma-b2c/src/components/Calendar/Calendar.config.ts
  • packages/plasma-b2c/src/components/Calendar/CalendarDouble.config.ts
  • packages/plasma-b2c/src/components/DatePicker/DatePicker.config.ts
  • packages/plasma-b2c/src/components/DateTimePicker/DateTimePicker.config.ts
  • packages/plasma-giga/src/components/Calendar/Calendar.config.ts
  • packages/plasma-giga/src/components/Calendar/CalendarDouble.config.ts
  • packages/plasma-giga/src/components/DatePicker/DatePicker.config.ts
  • packages/plasma-giga/src/components/DateTimePicker/DateTimePicker.config.ts
  • packages/plasma-homeds/src/components/Calendar/Calendar.config.ts
  • packages/plasma-homeds/src/components/Calendar/CalendarDouble.config.ts
  • packages/plasma-homeds/src/components/DatePicker/DatePicker.config.ts
  • packages/plasma-homeds/src/components/DateTimePicker/DateTimePicker.config.ts
  • packages/plasma-new-hope/src/components/Calendar/Calendar.tokens.ts
  • packages/plasma-new-hope/src/components/Calendar/CalendarBase/CalendarBase.tsx
  • packages/plasma-new-hope/src/components/Calendar/CalendarDouble/CalendarDouble.tsx
  • packages/plasma-new-hope/src/components/Calendar/ui/CalendarDays/CalendarDays.styles.ts
  • packages/plasma-new-hope/src/components/Calendar/ui/CalendarHeader/CalendarHeader.tsx
  • packages/plasma-new-hope/src/components/Calendar/ui/CalendarHeader/CalendarHeader.types.ts
  • packages/plasma-new-hope/src/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.ts
  • packages/plasma-new-hope/src/components/Calendar/ui/CalendarQuarters/CalendarQuarters.styles.ts
  • packages/plasma-new-hope/src/components/Calendar/ui/CalendarYears/CalendarYears.styles.ts
  • packages/plasma-new-hope/src/components/DatePicker/DatePicker.tokens.ts
  • packages/plasma-new-hope/src/components/DatePicker/DatePickerBase.styles.ts
  • packages/plasma-new-hope/src/components/DateTimePicker/DateTimePicker.tokens.ts
  • packages/plasma-new-hope/src/components/DateTimePicker/ui/CalendarGrid/CalendarGrid.styles.ts
  • packages/plasma-new-hope/src/components/_Icon/Icons/IconDisclosureDownFill.tsx
  • packages/plasma-web/src/components/Calendar/Calendar.config.ts
  • packages/plasma-web/src/components/Calendar/CalendarDouble.config.ts
  • packages/plasma-web/src/components/DatePicker/DatePicker.config.ts
  • packages/plasma-web/src/components/DateTimePicker/DateTimePicker.config.ts
  • packages/sdds-bizcom/src/components/Calendar/Calendar.config.ts
  • packages/sdds-bizcom/src/components/Calendar/CalendarDouble.config.ts
  • packages/sdds-bizcom/src/components/DatePicker/DatePicker.config.ts
  • packages/sdds-bizcom/src/components/DateTimePicker/DateTimePicker.config.ts
  • packages/sdds-cs/src/components/Calendar/Calendar.config.ts
  • packages/sdds-cs/src/components/Calendar/CalendarDouble.config.ts
  • packages/sdds-cs/src/components/DatePicker/DatePicker.config.ts
  • packages/sdds-dfa/src/components/Calendar/Calendar.config.ts
  • packages/sdds-dfa/src/components/Calendar/CalendarDouble.config.ts
  • packages/sdds-dfa/src/components/DatePicker/DatePicker.config.ts
  • packages/sdds-dfa/src/components/DateTimePicker/DateTimePicker.config.ts
  • packages/sdds-finai/src/components/Calendar/Calendar.config.ts
  • packages/sdds-finai/src/components/Calendar/CalendarDouble.config.ts
  • packages/sdds-finai/src/components/DatePicker/DatePicker.config.ts
  • packages/sdds-finai/src/components/DateTimePicker/DateTimePicker.config.ts
  • packages/sdds-insol-next/src/components/Calendar/Calendar.config.ts
  • packages/sdds-insol-next/src/components/Calendar/CalendarDouble.config.ts
  • packages/sdds-insol-next/src/components/DatePicker/DatePicker.config.ts
  • packages/sdds-insol-next/src/components/DateTimePicker/DateTimePicker.config.ts
  • packages/sdds-insol/src/components/Calendar/Calendar.config.ts
  • packages/sdds-insol/src/components/Calendar/CalendarDouble.config.ts
  • packages/sdds-insol/src/components/DatePicker/DatePicker.config.ts
  • packages/sdds-insol/src/components/DateTimePicker/DateTimePicker.config.ts
  • packages/sdds-netology/src/components/Calendar/Calendar.config.ts
  • packages/sdds-netology/src/components/Calendar/CalendarDouble.config.ts
  • packages/sdds-netology/src/components/DatePicker/DatePicker.config.ts
  • packages/sdds-netology/src/components/DateTimePicker/DateTimePicker.config.ts
  • packages/sdds-os/src/components/Calendar/Calendar.config.ts
  • packages/sdds-os/src/components/Calendar/CalendarDouble.config.ts
  • packages/sdds-os/src/components/DatePicker/DatePicker.config.ts
  • packages/sdds-platform-ai/src/components/Calendar/CalendarBase.config.ts
  • packages/sdds-platform-ai/src/components/Calendar/CalendarDouble.config.ts
  • packages/sdds-platform-ai/src/components/DatePicker/DatePicker.config.ts
  • packages/sdds-platform-ai/src/components/DateTimePicker/DateTimePicker.config.ts
  • packages/sdds-sbcom/src/components/Calendar/Calendar.config.ts
  • packages/sdds-sbcom/src/components/Calendar/CalendarDouble.config.ts
  • packages/sdds-sbcom/src/components/DatePicker/DatePicker.config.ts
  • packages/sdds-sbcom/src/components/DateTimePicker/DateTimePicker.config.ts
  • packages/sdds-scan/src/components/Calendar/Calendar.config.ts
  • packages/sdds-scan/src/components/Calendar/CalendarDouble.config.ts
  • packages/sdds-scan/src/components/DatePicker/DatePicker.config.ts
  • packages/sdds-scan/src/components/DateTimePicker/DateTimePicker.config.ts
  • packages/sdds-serv/src/components/Calendar/Calendar.config.ts
  • packages/sdds-serv/src/components/Calendar/CalendarDouble.config.ts
  • packages/sdds-serv/src/components/DatePicker/DatePicker.config.ts
  • packages/sdds-serv/src/components/DateTimePicker/DateTimePicker.config.ts
💤 Files with no reviewable changes (3)
  • packages/plasma-new-hope/src/components/Calendar/CalendarDouble/CalendarDouble.tsx
  • packages/plasma-new-hope/src/components/Calendar/CalendarBase/CalendarBase.tsx
  • packages/plasma-new-hope/src/components/Calendar/ui/CalendarHeader/CalendarHeader.types.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • packages/plasma-new-hope/src/components/DatePicker/DatePicker.tokens.ts
  • packages/plasma-new-hope/src/components/DatePicker/DatePickerBase.styles.ts

Comment on lines +238 to +239
calendarSelectedItemBackgroundHover: '--plasma-date-picker-calendar__selected-item-background-hover',
calendarSelectedItemHoverCursor: '--plasma-date-picker-calendar__selected-item-hover-cursor',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Use the DateTimePicker namespace for these custom properties.

The surrounding tokens use --plasma-date-time-picker-calendar__..., but Lines 238-239 use the DatePicker namespace. The CalendarGrid.styles.ts consumer reads these values, so direct DateTimePicker custom-property overrides will not use the expected names. This also allows DatePicker and DateTimePicker styles to target the same variables.

Proposed fix
-    calendarSelectedItemBackgroundHover: '--plasma-date-picker-calendar__selected-item-background-hover',
-    calendarSelectedItemHoverCursor: '--plasma-date-picker-calendar__selected-item-hover-cursor',
+    calendarSelectedItemBackgroundHover: '--plasma-date-time-picker-calendar__selected-item-background-hover',
+    calendarSelectedItemHoverCursor: '--plasma-date-time-picker-calendar__selected-item-hover-cursor',
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
calendarSelectedItemBackgroundHover: '--plasma-date-picker-calendar__selected-item-background-hover',
calendarSelectedItemHoverCursor: '--plasma-date-picker-calendar__selected-item-hover-cursor',
calendarSelectedItemBackgroundHover: '--plasma-date-time-picker-calendar__selected-item-background-hover',
calendarSelectedItemHoverCursor: '--plasma-date-time-picker-calendar__selected-item-hover-cursor',
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@packages/plasma-new-hope/src/components/DateTimePicker/DateTimePicker.tokens.ts`
around lines 238 - 239, Update the custom-property names assigned to
calendarSelectedItemBackgroundHover and calendarSelectedItemHoverCursor in the
DateTimePicker token definitions to use the --plasma-date-time-picker-calendar__
namespace, matching the surrounding tokens and CalendarGrid.styles.ts consumer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant