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(skeleton): new prop borderRadius #1539

Merged
merged 1 commit into from
Feb 7, 2025
Merged

feat(skeleton): new prop borderRadius #1539

merged 1 commit into from
Feb 7, 2025

Conversation

Haskiro
Copy link
Contributor

@Haskiro Haskiro commented Jan 17, 2025

Добавлен новый проп borderRadius в компонент Skeleton для указания скругления углов. Заложена возможность задания разных значений для каждого угла
ссылка на таску

Copy link

changeset-bot bot commented Jan 17, 2025

🦋 Changeset detected

Latest commit: e188553

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 38 packages
Name Type
@alfalab/core-components-skeleton Minor
@alfalab/core-components-calendar-with-skeleton Patch
@alfalab/core-components-select Patch
@alfalab/core-components-tabs Patch
@alfalab/core-components-typography Patch
@alfalab/core-components-custom-picker-button Patch
@alfalab/core-components-input-autocomplete Patch
@alfalab/core-components-international-phone-input Patch
@alfalab/core-components-intl-phone-input Patch
@alfalab/core-components-picker-button Patch
@alfalab/core-components-select-with-tags Patch
@alfalab/core-components-table Patch
@alfalab/core-components-accordion Patch
@alfalab/core-components-calendar Patch
@alfalab/core-components-chart Patch
@alfalab/core-components-circular-progress-bar Patch
@alfalab/core-components-comment Patch
@alfalab/core-components-confirmation Patch
@alfalab/core-components-file-upload-item Patch
@alfalab/core-components-gallery Patch
@alfalab/core-components-list-header Patch
@alfalab/core-components-list Patch
@alfalab/core-components-markdown Patch
@alfalab/core-components-navigation-bar-private Patch
@alfalab/core-components-navigation-bar Patch
@alfalab/core-components-product-cover Patch
@alfalab/core-components-pure-cell Patch
@alfalab/core-components-stepped-progress-bar Patch
@alfalab/core-components-tab-bar Patch
@alfalab/core-components-calendar-input Patch
@alfalab/core-components-calendar-range Patch
@alfalab/core-components-date-range-input Patch
@alfalab/core-components-date-time-input Patch
@alfalab/core-components-bottom-sheet Patch
@alfalab/core-components-modal Patch
@alfalab/core-components-popup-sheet Patch
@alfalab/core-components-side-panel Patch
@alfalab/core-components-tooltip Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coveralls
Copy link

coveralls commented Jan 17, 2025

Pull Request Test Coverage Report for Build 13197662521

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.003%) to 82.342%

Totals Coverage Status
Change from base Build 13159373590: 0.003%
Covered Lines: 10799
Relevant Lines: 11968

💛 - Coveralls

@core-ds-bot
Copy link
Collaborator

Собрана новая демка.

@core-ds-bot
Copy link
Collaborator

Собрана новая демка.

@@ -2,7 +2,7 @@

:root {
--skeleton-display: block;
--skeleton-border-radius: var(--border-radius-8);
--skeleton-border-radius: var(--border-radius-8); /* не используется в самом компоненте */
Copy link
Contributor

Choose a reason for hiding this comment

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

Кто-то мог его использовать, может оставить по дефолту?

Чтобы если не указан проп borderRadius, было скругление из css переменной

Copy link
Contributor Author

@Haskiro Haskiro Jan 29, 2025

Choose a reason for hiding this comment

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

по дефолту используется именно такое значение. Если попробовать именно это название использовать, то уже не получится в css так лаконично, как сейчас. Сама переменная остается, я ее не удалял, просто это название внутри компонента не берется

@core-ds-bot
Copy link
Collaborator

Собрана новая демка.

packages/skeleton/src/index.module.css Outdated Show resolved Hide resolved
@fulcanellee fulcanellee requested a review from Oladii February 7, 2025 07:27
packages/skeleton/src/index.module.css Outdated Show resolved Hide resolved
packages/skeleton/src/index.module.css Outdated Show resolved Hide resolved
packages/skeleton/src/Component.tsx Show resolved Hide resolved
@core-ds-bot
Copy link
Collaborator

Собрана новая демка.

@core-ds-bot
Copy link
Collaborator

Собрана новая демка.

@fulcanellee fulcanellee merged commit 8299b69 into master Feb 7, 2025
7 checks passed
@fulcanellee fulcanellee deleted the feat/DS-8489 branch February 7, 2025 12:38
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.

8 participants