Skip to content

Conversation

SiriusCrain
Copy link
Collaborator

No description provided.

@SiriusCrain
Copy link
Collaborator Author

SiriusCrain commented Sep 23, 2025

FYI This is just POC, actual styles will be different.
We are still discussing some effects or colors.

Copy link

github-actions bot commented Sep 23, 2025

Visit the preview URL for this PR (updated for commit 47e4ead):

https://superdispatch-ui-next--pr15-stms-4898-gtm81599.web.app

(expires Thu, 16 Oct 2025 07:27:55 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 31dfc7089465d7a81a6dde71dbcc27b0012b1271

Comment on lines 45 to 54
props: { variant: "text" },
style: textVariant(),
},
{
props: { variant: "outlined" },
style: secondaryVariant(),
},
{
props: { variant: "contained" },
style: primaryVariant(),
Copy link
Contributor

Choose a reason for hiding this comment

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

[critical]: we should use our custom semantic variants as per design:
primary, secondary, success, critical, 'inverted', text

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For now we are discussing naming for buttons

Comment on lines 5 to 39
function textVariant(): CSSProperties {
return {
textTransform: "none",
fontWeight: 500,
padding: "6px 16px",
minWidth: 0,
minHeight: 0,
fontSize: "14px",
};
}

function secondaryVariant(): CSSProperties {
return {
textTransform: "none",
fontWeight: 500,
padding: "5px 15px",
minWidth: 0,
minHeight: 0,
fontSize: "14px",
};
}

function primaryVariant(): CSSProperties {
return {
"&:hover": {
backgroundColor: ColorDynamic.Red30,
},
textTransform: "none",
fontWeight: 600,
padding: "6px 16px",
minWidth: 0,
minHeight: 0,
fontSize: "14px",
};
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if it makes sense to create separate functions for returning the simple object, we can inline them + considering you have a lot of repetition/common css in all variants, would make sense to define it once in the root style overrides.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch, will do

Comment on lines 35 to 36
minWidth: 0,
minHeight: 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

[question]: why 0 for both? I would not expect a minHeight for button, and for minWidth it should be more than 0, at least 64 or smth.

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