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

fix: add size property to button loading component #173

Merged

Conversation

fatemeh-asgari
Copy link
Collaborator

No description provided.

Comment on lines +70 to +72
<tap-spinner
size=${this.size === 'small' ? 'small' : nothing}
></tap-spinner>
Copy link
Member

Choose a reason for hiding this comment

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

I think both the button and spinner components have the property size with the type of 'small' | 'medium' | 'large'. Can't we pass the size of the button to the spinner?

Suggested change
<tap-spinner
size=${this.size === 'small' ? 'small' : nothing}
></tap-spinner>
<tap-spinner size=${this.size}></tap-spinner>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, because the sizes of the two components do not correspond one-to-one. Buttons labeled 'large' and 'medium' have a spinner with a 'medium' size.

@majidsajadi majidsajadi merged commit b738f39 into Tap30:main Aug 17, 2024
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