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(Button): refactor to flex and center icons #1452

Merged
merged 5 commits into from
Apr 11, 2024
Merged

Conversation

teleginzhenya
Copy link
Contributor

@teleginzhenya teleginzhenya commented Mar 25, 2024

Button component was refactored to use modern flex. Position absolute and complex padding calculations was removed.

@teleginzhenya teleginzhenya requested a review from amje as a code owner March 25, 2024 22:08
@gravity-ui-bot
Copy link
Contributor

Playwright Test Component is ready.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

Copy link
Contributor Author

@teleginzhenya teleginzhenya left a comment

Choose a reason for hiding this comment

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

And seems like we might need to add some tests/stories to the button

  • custom width
  • max width

src/components/Button/Button.scss Outdated Show resolved Hide resolved
src/components/Button/Button.scss Show resolved Hide resolved
src/components/Button/Button.scss Outdated Show resolved Hide resolved
@teleginzhenya teleginzhenya force-pushed the feature/UXRFC-435 branch 2 times, most recently from a23efb1 to 79ccb7a Compare March 26, 2024 11:59
src/components/Button/Button.scss Outdated Show resolved Hide resolved
@teleginzhenya teleginzhenya force-pushed the feature/UXRFC-435 branch 2 times, most recently from 6cc9c7a to b269fd5 Compare March 26, 2024 19:36
@teleginzhenya teleginzhenya requested a review from amje March 28, 2024 23:29
@teleginzhenya teleginzhenya force-pushed the feature/UXRFC-435 branch 2 times, most recently from b9990f6 to a6a3221 Compare April 1, 2024 21:54
Comment on lines 291 to 295
order: 0;
}

&_side_end {
inset-inline-end: var(--_--icon-position);

& ~ #{$block}__text {
padding-inline-end: var(--_--icon-space);
}
order: 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

Default value for order is 0, let's use-1 and 1 then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@teleginzhenya teleginzhenya requested a review from amje April 9, 2024 07:12
@amje amje merged commit 31c22e8 into main Apr 11, 2024
4 checks passed
@amje amje deleted the feature/UXRFC-435 branch April 11, 2024 10:48
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.

3 participants