You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe in detail the issue you're having.
When browser is in Chinese langauge (eg Chrome: Chinese Simplified/traditional/Hong Kong) toggle text breaks to a new line for each character.
Is this issue related to a specific component?
ToggleSmall.js
What did you expect to happen? What happened instead? What would you like to
see changed?
Add 'white-space: nowrap' property to toggle__text--on/toggle__text--off, this fixes issue
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
Steps to reproduce the issue
Go to toggle small in Storybook https://react.carbondesignsystem.com/?path=/story/toggle--toggled
Change toggle text to Chinese characters, eg 已啟用
Additional information
The text was updated successfully, but these errors were encountered: