Skip to content

PLASMA-7299: Note ContentBefore align - #3012

Open
vmytnik wants to merge 5 commits into
devfrom
PLASMA-7299
Open

PLASMA-7299: Note ContentBefore align#3012
vmytnik wants to merge 5 commits into
devfrom
PLASMA-7299

Conversation

@vmytnik

@vmytnik vmytnik commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Core

Note

  • добавлен токен для вертикального выравнивания ContentBefore

PLASMA-HOMEDS

Note

  • размеры и отступы в соответствии с новым макетом
  • оставил только size M
  • вертикальное выравнивание ContentBefore посередине
  • кастомные размеры для иконки ContentBefore и текста ActionContent

PLASMA-SB-UTILS

Note

  • добавил возможность указать кастомные размеры для иконки ContentBefore и текста ActionContent

What/why changed

Summary by CodeRabbit

  • Bug Fixes
    • Improved horizontal Note layouts by vertically centering fixed leading content.
    • Added consistent alignment behavior for fixed content across supported Note variations.
📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @salutejs/plasma-asdk@0.385.0-canary.3012.30916826044.0
npm install @salutejs/plasma-b2c@1.627.0-canary.3012.30916826044.0
npm install @salutejs/plasma-colors@0.17.0-canary.3012.30916826044.0
npm install @salutejs/plasma-core@1.234.0-canary.3012.30916826044.0
npm install @salutejs/plasma-giga@0.354.0-canary.3012.30916826044.0
npm install @salutejs/plasma-homeds@0.354.0-canary.3012.30916826044.0
npm install @salutejs/plasma-hope@1.381.0-canary.3012.30916826044.0
npm install @salutejs/plasma-icons@1.244.0-canary.3012.30916826044.0
npm install @salutejs/plasma-new-hope@0.371.0-canary.3012.30916826044.0
npm install @salutejs/plasma-tokens@1.146.0-canary.3012.30916826044.0
npm install @salutejs/plasma-tokens-b2b@1.60.0-canary.3012.30916826044.0
npm install @salutejs/plasma-tokens-b2c@0.71.0-canary.3012.30916826044.0
npm install @salutejs/plasma-tokens-core@0.8.0-canary.3012.30916826044.0
npm install @salutejs/plasma-tokens-web@1.75.0-canary.3012.30916826044.0
npm install @salutejs/plasma-typo@0.48.0-canary.3012.30916826044.0
npm install @salutejs/plasma-web@1.629.0-canary.3012.30916826044.0
npm install @salutejs/sdds-bizcom@0.359.0-canary.3012.30916826044.0
npm install @salutejs/sdds-cs@0.363.0-canary.3012.30916826044.0
npm install @salutejs/sdds-dfa@0.357.0-canary.3012.30916826044.0
npm install @salutejs/sdds-finai@0.350.0-canary.3012.30916826044.0
npm install @salutejs/sdds-insol@0.354.0-canary.3012.30916826044.0
npm install @salutejs/sdds-insol-next@0.354.0-canary.3012.30916826044.0
npm install @salutejs/sdds-netology@0.358.0-canary.3012.30916826044.0
npm install @salutejs/sdds-os@0.29.0-canary.3012.30916826044.0
npm install @salutejs/sdds-platform-ai@0.358.0-canary.3012.30916826044.0
npm install @salutejs/sdds-sbcom@0.359.0-canary.3012.30916826044.0
npm install @salutejs/sdds-scan@0.357.0-canary.3012.30916826044.0
npm install @salutejs/sdds-serv@0.358.0-canary.3012.30916826044.0
npm install @salutejs/core-themes@0.36.0-canary.3012.30916826044.0
npm install @salutejs/plasma-themes@0.58.0-canary.3012.30916826044.0
npm install @salutejs/sdds-themes@0.72.0-canary.3012.30916826044.0
npm install @salutejs/sdds-api-tests@0.16.0-canary.3012.30916826044.0
npm install @salutejs/plasma-cy-utils@0.164.0-canary.3012.30916826044.0
npm install @salutejs/plasma-sb-utils@0.235.0-canary.3012.30916826044.0
npm install @salutejs/plasma-tokens-utils@0.56.0-canary.3012.30916826044.0
# or 
yarn add @salutejs/plasma-asdk@0.385.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-b2c@1.627.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-colors@0.17.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-core@1.234.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-giga@0.354.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-homeds@0.354.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-hope@1.381.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-icons@1.244.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-new-hope@0.371.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-tokens@1.146.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-tokens-b2b@1.60.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-tokens-b2c@0.71.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-tokens-core@0.8.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-tokens-web@1.75.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-typo@0.48.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-web@1.629.0-canary.3012.30916826044.0
yarn add @salutejs/sdds-bizcom@0.359.0-canary.3012.30916826044.0
yarn add @salutejs/sdds-cs@0.363.0-canary.3012.30916826044.0
yarn add @salutejs/sdds-dfa@0.357.0-canary.3012.30916826044.0
yarn add @salutejs/sdds-finai@0.350.0-canary.3012.30916826044.0
yarn add @salutejs/sdds-insol@0.354.0-canary.3012.30916826044.0
yarn add @salutejs/sdds-insol-next@0.354.0-canary.3012.30916826044.0
yarn add @salutejs/sdds-netology@0.358.0-canary.3012.30916826044.0
yarn add @salutejs/sdds-os@0.29.0-canary.3012.30916826044.0
yarn add @salutejs/sdds-platform-ai@0.358.0-canary.3012.30916826044.0
yarn add @salutejs/sdds-sbcom@0.359.0-canary.3012.30916826044.0
yarn add @salutejs/sdds-scan@0.357.0-canary.3012.30916826044.0
yarn add @salutejs/sdds-serv@0.358.0-canary.3012.30916826044.0
yarn add @salutejs/core-themes@0.36.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-themes@0.58.0-canary.3012.30916826044.0
yarn add @salutejs/sdds-themes@0.72.0-canary.3012.30916826044.0
yarn add @salutejs/sdds-api-tests@0.16.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-cy-utils@0.164.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-sb-utils@0.235.0-canary.3012.30916826044.0
yarn add @salutejs/plasma-tokens-utils@0.56.0-canary.3012.30916826044.0

@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The Note component now supports configurable alignment for fixed leading content. Horizontal Homeds notes set this content to center alignment through a shared New Hope styling token.

Changes

Note content alignment

Layer / File(s) Summary
Alignment token and layout wiring
packages/plasma-new-hope/src/components/Note/Note.tokens.ts, packages/plasma-new-hope/src/components/Note/variations/_size/base.ts, packages/plasma-homeds/src/components/Note/Note.config.ts
The Note styles define fixedContentBeforeAlignSelf, apply it to ContentBefore, and set it to center for horizontal Homeds notes.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: yakutoc, titankuzmich

🚥 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 identifies the Note ContentBefore alignment change described in the pull request.
✨ 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-7299

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 3, 2026

Copy link
Copy Markdown
Contributor

Theme Builder app deployed!

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

@Yakutoc
Yakutoc requested review from IgorYar and oki1oki and removed request for Yeti-or, neretin-trike and shuga2704 August 3, 2026 14:29
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Documentation preview deployed!

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

width: var(${tokens.fixedContentBeforeWidth});
height: var(${tokens.fixedContentBeforeHeight});
padding: var(${tokens.fixedContentBeforePadding});
align-self: var(${tokens.fixedContentBeforeAlignSelf});

@TitanKuzmich TitanKuzmich Aug 4, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Тут по идее фолбек стоит поставить, так как значение у токена только в одной либе добавляется

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.

2 participants