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

bug(Forms): using Form.SubHeading inside a card with stack doesn't display the stack border #3078

Closed
langz opened this issue Dec 13, 2023 · 5 comments · Fixed by #3198
Closed
Assignees
Labels
bug Something isn't working released
Milestone

Comments

@langz
Copy link
Contributor

langz commented Dec 13, 2023

🐛 Bug Report

Using Form.SubHeading inside a card with stack doesn't display the stack border between the elements in the card.

image

I'm not 100% sure what we want the expected result to be here, but I find it strange that the "stack border" doesn't display in this scenario.

There's a lot of demos/examples in the docs that's written like this, and the "stack border" is not displayed. So it would be nice to know if it should be like this, or not 🙏

To Reproduce

Take a look in the following CSB.
It includes a few different demos/examples, using Form and Card stack.

@langz langz added the bug Something isn't working label Dec 13, 2023
@langz langz added this to the Forms Release milestone Dec 13, 2023
@joakbjerk joakbjerk self-assigned this Dec 15, 2023
@joakbjerk
Copy link
Contributor

It looks like you can fix this by wrapping the Form.SubHeading inside a Flex.Item. Not sure if this is the intended way for the user to fix this problem, or if it should work without the wrapping. On another note thought the Form.SubHeading itself do receive a grey underline beneath it by doing this, not sure if that is correct either, visually 🤔

CSB

Screenshot 2023-12-15 at 10 04 23

@joakbjerk joakbjerk removed their assignment Dec 15, 2023
@langz
Copy link
Contributor Author

langz commented Dec 15, 2023

It looks like you can fix this by wrapping the Form.SubHeading inside a Flex.Item. Not sure if this is the intended way for the user to fix this problem, or if it should work without the wrapping. On another note thought the Form.SubHeading itself do receive a grey underline beneath it by doing this, not sure if that is correct either, visually 🤔

CSB

Screenshot 2023-12-15 at 10 04 23

A lot of question, and uncertainties 😄 🤔

@langz langz modified the milestones: Forms Issue, Forms Release Dec 20, 2023
@joakbjerk
Copy link
Contributor

Conclusion of discussion: Remove stack property from Forms demo examples that uses the Card component

@joakbjerk joakbjerk self-assigned this Dec 28, 2023
@tujoworker
Copy link
Member

Actually, we rather should make "space" the default separator and make the line "opt-in".

I have started on this change already.

@tujoworker
Copy link
Member

🎉 This issue has been resolved in version 10.17.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Development

Successfully merging a pull request may close this issue.

3 participants