DataGrid noWrap has no effect #3753
-
Hey guys, I'm pretty sure that it used to work, 'cause we relied on this prop just recently. But it doesn't seem to be working any more and cell text is always wrapped. Any insights what could affect it? I can see that It's might be a bug. But if it wasn't meaning that the prop was removed on purpose, then it was a breaking change, and AFAICS it was not mentioned anywhere in the release notes. We updated Paste version in our app, and boom - we have a visual regression. BTW, do you guys have any discussions regarding better documenting breaking changes and corresponding migration guides? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
🤖 Hey there, @dmitriy-kudelko! 😊 Good to see you back. Looks like we've got another puzzle to solve together. Hang tight, I'm diving into your issue and will get back with some insights shortly! |
Beta Was this translation helpful? Give feedback.
-
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary. Sorry, I don't know how to help with that. I did do a search though, and I managed to find these other Discussions that might be similar or related to your question. Give them a read to see if they answer your question. If they do, head back here and update this discussion and mark it as answered, pointing others to the related discussion:
|
Beta Was this translation helpful? Give feedback.
-
🤖 I appreciate your detailed feedback and I understand the inconvenience this may have caused. Based on the context provided, it seems that the If you want to prevent the text from wrapping, you should pass "nowrap" to the <Th whiteSpace="nowrap">Your text here</Th> As for the change or removal of the Regarding your question about discussions on better documenting breaking changes and corresponding migration guides, I don't have any information on that. However, your feedback is valuable and I'm sure the maintainers of the Paste design system would appreciate it. I hope this helps! If you have any more questions or need further clarification, feel free to ask. SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
Based on your description that definitely sounds like a regression. Are you able to put together a very simple reproduction in Codesandbox for us, and one of us will take a look over the next couple of days? We are very intentional when introducing breaking changes. We even have an upgrade guide for when we do major releases https://paste.twilio.design/core/upgrade-guide. This change to data grid, if it was the cause, was never intended to be a breaking change. We will from time to time change the visual design of a component, it could be reasonably drastic. We tend to think of that as a private API of sorts, it's something we own and not something a consumer interfaces with. We don't class those as breaking changes. A prop that appears on the public API of the component that affects how a component renders though, should also do what it says it should do. It's independent of the visual design mostly. Which is why this sounds like a regression. |
Beta Was this translation helpful? Give feedback.
Fixed in 20.9.0