Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(plasma-new-hope): fix tabs styles #1220

Merged
merged 2 commits into from
May 28, 2024
Merged

Conversation

TitanKuzmich
Copy link
Contributor

@TitanKuzmich TitanKuzmich commented May 27, 2024

Tabs

  • добавлен корректный проброс className в Tab и TabItem
  • поправлена документация для Tab и Segment

ДО:

image
image

ПОСЛЕ:

image
image

What/why changed

В Tab и TabItem некорректно пробрасывался className, поэтому нельзя было оборачивать компонент в styled. Помимо этого в документации некорректно визуально отображались табы и сегменты

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
# or 
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]

Copy link
Contributor

Theme Builder app deployed!

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

<SegmentProvider>
<SegmentTemplate/>
</SegmentProvider>
<div style={{ display: "block" }} >
Copy link
Contributor

Choose a reason for hiding this comment

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

Зачем display?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

По умолчанию на первый дивак вешается flex и gap=1

Copy link
Contributor

⚡ Component performance testing

Result: 🟢 OK

Copy link
Contributor

⚡ Component performance testing

Result: 🟢 OK

@TitanKuzmich TitanKuzmich added this pull request to the merge queue May 28, 2024
Merged via the queue into dev with commit 985c117 May 28, 2024
29 checks passed
@TitanKuzmich TitanKuzmich deleted the plasma-2944/fix-tabs-styles branch May 28, 2024 09:51
This was referenced Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants