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

Sord 564 update button #250

Merged
merged 2 commits into from
Jul 19, 2024
Merged

Sord 564 update button #250

merged 2 commits into from
Jul 19, 2024

Conversation

clementdejoie
Copy link
Contributor

No description provided.

@clementdejoie clementdejoie force-pushed the SORD-564-Update-button branch from 124087e to a0e236e Compare July 17, 2024 14:36
@clementdejoie clementdejoie requested a review from a team July 17, 2024 14:39
marginHorizontal: size === 's' ? 16 : 22,
fontSize:
size === 's'
? theme.sw.typography.button.n3!.fontSize
Copy link
Member

Choose a reason for hiding this comment

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

pourquoi le point d'exclamation a 'n3', il est potentiellement null ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pour typer les typographies (button, headline, body et label) on utilise un même type et il y a des typographies qui s'arrête à n2 :-/. Mais pas button.

Comment on lines +57 to +58
? (theme.sw.typography.button.n3!.fontWeight as never)
: (theme.sw.typography.button.n1.fontWeight as never),
Copy link
Member

Choose a reason for hiding this comment

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

as never ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oui, notre type ne match pas parfaitement celui attendu, mais fonctionne très bien... Il faudrait peut-être revoir les types retournés par la librairie de token (https://github.com/ZeroGachis/smartway-design-token)

@clementdejoie clementdejoie merged commit 19d8b06 into main Jul 19, 2024
2 checks passed
@clementdejoie clementdejoie deleted the SORD-564-Update-button branch July 19, 2024 07:23
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