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

update for button component #44

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

uwgi
Copy link
Collaborator

@uwgi uwgi commented Aug 8, 2024

Update button component

@uwgi uwgi requested review from r3dDoX and culas August 8, 2024 13:22
Copy link
Member

@r3dDoX r3dDoX left a comment

Choose a reason for hiding this comment

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

Nice change. I also think it's good if we have a coherent way to handle single/double quotes.

@@ -123,7 +123,7 @@ export default class Button extends BaseElement {
}

private get buttonSpacing(): ButtonSpacing {
if (this.type === 'icon-only') {
if (this.type === 'icon-only' && this.spacing === 'text') {
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if I understand this change. What's the use case for type 'icon-only' but spacing 'text'?

Copy link
Member

Choose a reason for hiding this comment

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

Can't fully remember, it's a change we did in the project (last October 😉). As far as I understand it, the type "icon-only" should only affect spacing if that has not been set explicitly, which would mean something else than "text" as that's the default.

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