-
Notifications
You must be signed in to change notification settings - Fork 156
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
[Feature Request]: white-space
style will be override for items under ButtonDropdown
#1960
Comments
white-space
style will be override for items under ButtonDropdown
If we start looking into this issue, we should support it for all components, not just dropdown. How do you expect this to work? How do we distinguish "good" i18n strings (which should follow your selector) and "bad" (which should not)? Can you make your |
Hi @just-boris, I expect all components has its own css property instead of inheriting from its parent. In my use case, our i18n strings may contains // en/translation.json
{
"demo_string": "This is a long line of description and requires \n link breaks."
} If we don't have
|
So if you put a How do you make sense of this request? |
So you want What should we do if tomorrow we get another customer requesting the exact opposite behavior? How are we supposed to support both cases? |
Description
The
ButtonDropdown
component's item willnotwrap text if you have awhite-space
property set and rides on it.For me, its because I have
set globally. (for line break
\n
in i18n strings)My workaround: add custom className, for example
buttonDropdownFix
(I know this is discouraged but like I said, its a workaround), and have css likePlease let me know if any questions. Thanks!
All opinions are my own.
Code of Conduct
The text was updated successfully, but these errors were encountered: