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
List.Item overflows List #2778
Comments
Did a little research about why this is happening. From what I researched, Quick Solution A quick solution is to pass a custom bullet icon. <List icon="•"> ... </List> Caveat(s) The Possible Solutions
2.1 CSS A custom bullet can be created using a li {
display: flex;
&::before {
content: ' ';
display: list-item;
}
} https://codesandbox.io/s/mantine-list-item-overflow-4n19br?file=/src/App.tsx 2.2 Custom Element A custom element rendering a bullet could be the default element rendered if I think either solution would be the least invasive as both won't require breaking structural changes. If we feel one is a viable solution, I can make a PR with the selected solution; otherwise, we'll brainstorm another solution. |
A more straightforward solution is to add tags inside the <List.Item> tag. This is because this commit with removed the original tags causing this overflow to happen: #2146 |
@koralarts you are right!
|
I made a Pull Request and it got merged, so the issue should be fixed. |
#2857 There's the link to the Pull Request that got merged. |
What package has an issue
@mantine/core
Describe the bug
The itemWrapper div inside of
List.Item
overflows the width of the List.What version of @mantine/hooks page do you have in package.json?
5.6.1
If possible, please include a link to a codesandbox with the reproduced problem
https://codesandbox.io/s/relaxed-matan-upqijw
Do you know how to fix the issue
No response
Are you willing to participate in fixing this issue and create a pull request with the fix
Yes
Possible fix
No response
The text was updated successfully, but these errors were encountered: