Open notramo opened 1 year ago
@BeeMargarida I couldn't find documentation on how Stitches is used in this project. Could you provide some guidance on where to look for examples?
This fix would involve setting margin-top
on direct child components. Is it something that can be solved with Stitches? It requires a >
selector.
We have some examples in this part of the docs and the stitches docs are also really good.
So, for example, in the Stack
styles, you have the root
object, which style the root component of the Stack. If you want to modify the style of it's direct children, with would be something like the code below would work.
root: {
....
'& > *': {
...
}
}
One example where we have similar logic is in the styles for the Group
component.
You can use the storybook (run yarn dev
) to test out your approach.
What package has an issue
@svelteuidev/core
A clear and concise description of what the bug is
The
Stack
component uses CSSgap
for spacing. It causes a glitch withtransition:slide
, becase when the element reaches 0 height, gap is still retained, and when it's removed, the gap is suddenly removed without animation.It can be fixed by replacing
gap
with margins on child elements. Is it possible to do it on theStack
component?In which browser(s) did the problem occur?
Other - list in description
Steps To Reproduce
Click a square to remove it.
Do you know how to fix the issue
Yes
Are you willing to participate in fixing this issue and create a pull request with the fix
I would like, but unfortunately there are too few documentation on contributing.