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

Add Dot component #7848

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

Add Dot component #7848

wants to merge 1 commit into from

Conversation

olmoh
Copy link
Collaborator

@olmoh olmoh commented Mar 20, 2025

This change is Reviewable

Copy link

linear bot commented Mar 20, 2025

@olmoh olmoh requested a review from tobias-jarvelov March 20, 2025 07:19
error: Colors.red,
};

export const Dot = ({ variant = 'success', size = 'medium', ...props }: DotProps) => {
Copy link
Contributor

@tobias-jarvelov tobias-jarvelov Mar 20, 2025

Choose a reason for hiding this comment

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

question: Do we really want variant to be optional and have success as the default value?

This might be confusing if we have logic which feed this component props, but for some reason omits the variant. If that happens we will accidentally render the success variant, when this might be because of an unhandled situation in the logic which feeds this component props. In this situation we will convey a positive indication to the user, when the opposite might be true.

suggestion: Make the variant required and remove the default value.

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