Decathlon / vitamin-compose

Decathlon Design System UI components for Compose applications
https://www.decathlon.design
Apache License 2.0
268 stars 29 forks source link

bug: Add vertical padding for Snackbar component #55

Closed ManonPolle closed 1 year ago

ManonPolle commented 1 year ago

Describe the bug See https://github.com/Decathlon/vitamin-design/issues/90

Concerning

image
ManonPolle commented 1 year ago

Hello

If you still need this fix, yes you can take the issue and see our process & guidelines into our CONTRIBUTING.md https://github.com/Decathlon/vitamin-compose/blob/main/CONTRIBUTING.md, assign it to yourself & change issue status to Dev In Progress ( https://github.com/orgs/Decathlon/projects/3/views/14) Someone will check your Pull Request when created.

Don't hesitate if you have any questions

Manon, Tech lead Android Vitamin - Decathlon Design System

Le sam. 31 déc. 2022 à 17:36, Jeffrey Orazulike @.***> a écrit :

Can I take this issue?

— Reply to this email directly, view it on GitHub https://github.com/Decathlon/vitamin-compose/issues/55#issuecomment-1368249817, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALEMANNV7OEQGK4C6WUNE5DWQBOILANCNFSM6AAAAAASX5WG5A . You are receiving this because you authored the thread.Message ID: @.***>

GerardPaligot commented 1 year ago

In Compose, there are hardcoded values for the padding of a Snackbar:

private val HorizontalSpacing = 16.dp
private val HorizontalSpacingButtonSide = 8.dp
private val SeparateButtonExtraY = 2.dp
private val SnackbarVerticalPadding = 6.dp

These paddings are used in internal of the Snackbar and can't be customized.