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(IconButton): loading state #2029

Merged
merged 7 commits into from
Mar 25, 2024

Conversation

SergeyRoyt
Copy link
Contributor

@SergeyRoyt SergeyRoyt commented Mar 21, 2024

@SergeyRoyt SergeyRoyt self-assigned this Mar 21, 2024
@SergeyRoyt SergeyRoyt requested a review from a team as a code owner March 21, 2024 09:48
}

.loader.loader {
Copy link
Member

Choose a reason for hiding this comment

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

Why are we providing only a partial set of options? Let's give the ability to show the loader for all sizes, is it by design?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's showing for all of the sizes
We just need an override for the xxs size - 10 instead of 16

Copy link
Member

Choose a reason for hiding this comment

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

Why do we need it anyway? Doesn't get a default size already in Loader?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

Copy link
Member

Choose a reason for hiding this comment

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

Can you nest instead of using the class twice? It will increase specificity

Comment on lines +12 to +13
height: 16px;
Copy link
Member

Choose a reason for hiding this comment

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

Do we have variables?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Which variables would you use here?

Comment on lines +17 to +19
display: block;
}
Copy link
Member

Choose a reason for hiding this comment

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

Why is it necessary? Is it inline by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image
It's inline by default, yeah
Without display block it isn't displaying properly

packages/core/src/components/IconButton/IconButton.tsx Outdated Show resolved Hide resolved
@SergeyRoyt SergeyRoyt requested a review from talkor March 25, 2024 11:57
Copy link
Member

@talkor talkor left a comment

Choose a reason for hiding this comment

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

See two comments :)

}

.loader.loader {
Copy link
Member

Choose a reason for hiding this comment

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

Can you nest instead of using the class twice? It will increase specificity

packages/core/src/components/IconButton/IconButton.tsx Outdated Show resolved Hide resolved
@SergeyRoyt SergeyRoyt merged commit a38dd2b into master Mar 25, 2024
10 checks passed
@SergeyRoyt SergeyRoyt deleted the sergeyro/feature/icon-button-loading branch March 25, 2024 15:40
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.

2 participants