-
Notifications
You must be signed in to change notification settings - Fork 52
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
Conversation
🦋 Changeset detectedLatest commit: e188553 The changes in this PR will be included in the next version bump. This PR includes changesets to release 38 packages
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 |
Pull Request Test Coverage Report for Build 13197662521Details
💛 - Coveralls |
Собрана новая демка. |
Собрана новая демка. |
packages/skeleton/src/vars.css
Outdated
@@ -2,7 +2,7 @@ | |||
|
|||
:root { | |||
--skeleton-display: block; | |||
--skeleton-border-radius: var(--border-radius-8); | |||
--skeleton-border-radius: var(--border-radius-8); /* не используется в самом компоненте */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Кто-то мог его использовать, может оставить по дефолту?
Чтобы если не указан проп borderRadius, было скругление из css переменной
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
по дефолту используется именно такое значение. Если попробовать именно это название использовать, то уже не получится в css так лаконично, как сейчас. Сама переменная остается, я ее не удалял, просто это название внутри компонента не берется
Собрана новая демка. |
Собрана новая демка. |
Собрана новая демка. |
Добавлен новый проп borderRadius в компонент Skeleton для указания скругления углов. Заложена возможность задания разных значений для каждого угла
ссылка на таску