-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[data grid] right row border is not visible #12340
Comments
Hey @yehudamakarov could you try and replicate this in a codesandbox for us? A grid with demo data should be good, but please make sure that the styles from your implementation are applied. Thanks! There are some resources on how to do that here: Support - Bug reproduction. |
I did play around with it a bit and here is what I came up with so far: Borderradius on rows Looks as if the One thing that is still missing is the selected outline. That still seems a bit off. @romgrk any idea how to fix that? |
@michelengelen in your example, if you add |
Does this work for you? https://stackblitz.com/edit/borderradius-rows-6pf44u?file=Demo.tsx |
@romgrk that example looks like it was working really well. i will try to use that example on my end, and update here. |
I realize that the CSS is not pretty, however I don't think we'd be modifying the grid for this feature. The layout calculations require pixel accuracy to layout the elements (rows & cells) at their correct locations, and we only consider borders in specific locations: between rows, and between cells. Including borders that can span around rows would add a lot of custom logic. The |
I totally hear and love how there’s something that seems robust here. We can abstract this away in one place and use it as a base table somehow.
Thanks,
Yehuda
…On Mar 13, 2024 at 1:31 AM -0400, Rom Grk ***@***.***>, wrote:
I realize that the CSS is not pretty, however I don't think we'd be modifying the grid for this feature. The layout calculations require pixel accuracy to layout the elements (rows & cells) at their correct locations, and we only consider borders in specific locations: between rows, and between cells. Including borders that can span around rows would add a lot of custom logic. The ::before trick is by far the most maintainable approach to get the design you want.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
How did we do @yehudamakarov? |
just leaving for reference:
|
The problem in depth
general info
see previous issues, but I cannot find a reliable answer.
my use case is rows that are spaced and with a round border. the right side of these bordered rows will be hidden.
The goal:
The outcome:
thanks
Your environment
`npx @mui/envinfo`
Search keywords: border row right visible
Order ID: 83930
The text was updated successfully, but these errors were encountered: