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(gap): added numeric size values #1037

Merged
merged 1 commit into from
Feb 8, 2024
Merged

feat(gap): added numeric size values #1037

merged 1 commit into from
Feb 8, 2024

Conversation

Valeri8888
Copy link
Collaborator

No description provided.

Copy link

changeset-bot bot commented Dec 8, 2023

🦋 Changeset detected

Latest commit: 5609ef4

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

This PR includes changesets to release 4 packages
Name Type
@alfalab/core-components-gap Minor
@alfalab/core-components-generic-wrapper Patch
@alfalab/core-components-pass-code Patch
@alfalab/core-components-pattern-lock 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

@Valeri8888 Valeri8888 force-pushed the feat/gap_new_size branch 2 times, most recently from 553e162 to cea51ce Compare December 8, 2023 06:34
@coveralls
Copy link

coveralls commented Dec 8, 2023

Pull Request Test Coverage Report for Build 7527918536

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.001%) to 83.644%

Totals Coverage Status
Change from base Build 7491007327: 0.001%
Covered Lines: 9019
Relevant Lines: 9936

💛 - Coveralls

@core-ds-bot
Copy link
Collaborator

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

'6xl': 'size-72',
'7xl': 'size-96',
'8xl': 'size-128',
0: 'size-0',
Copy link
Contributor

@v-gevak v-gevak Dec 8, 2023

Choose a reason for hiding this comment

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

А ноль зачем? Зачем юзать компонент, если отступ не нужен? Непонятно

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ну может надо по условию менять размер c 0 на какой-то
я не знаю
@Oladii

Copy link
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Contributor

@v-gevak v-gevak Dec 8, 2023

Choose a reason for hiding this comment

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

Если отступ может быть нулевым, то лучше не рендерить компонент, чем устанавливать у него нулевую ширину.

{gapSize && <Gap size={gapSize} />}

Copy link
Contributor

Choose a reason for hiding this comment

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

Не думаю, что кто-то этим будет пользоваться

Copy link
Contributor

Choose a reason for hiding this comment

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

Я бы оставил, в том же SDUI может быть удобнее тупо кинуть в компонент значение, чем добавлять еще доп. условие + могут быть проблемы с типами, если у них будет 0, а у нас нет

@core-ds-bot
Copy link
Collaborator

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

'6xl': 'size-72',
'7xl': 'size-96',
'8xl': 'size-128',
0: 'size-0',
Copy link
Contributor

Choose a reason for hiding this comment

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

Я бы оставил, в том же SDUI может быть удобнее тупо кинуть в компонент значение, чем добавлять еще доп. условие + могут быть проблемы с типами, если у них будет 0, а у нас нет

@Valeri8888 Valeri8888 force-pushed the feat/gap_new_size branch 2 times, most recently from 978eb97 to 5609ef4 Compare January 15, 2024 11:02
@core-ds-bot
Copy link
Collaborator

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

@v-gevak v-gevak merged commit 3e53157 into master Feb 8, 2024
7 checks passed
@v-gevak v-gevak deleted the feat/gap_new_size branch February 8, 2024 05:56
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.

None yet

6 participants