Capitalization options for the User component #665
gregorgabrovsek
started this conversation in
Feedback
Replies: 1 comment
-
Hey @GoesUp thanks for your suggestion, I just sent a commit removing the text transform, it will be available in the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
when using the
User
component, I noticed that every word of the string given as thename
prop is automatically capitalized. It appears that this line is responsible for the described behavior.I'm thinking that it would be a good idea to add a prop to the
User
component, which would allow users to modify this behavior (of course, the default capitalization option could be the current behavior - just to avoid breaking changes).There are two benefits I have in mind:
User
component is used by the developer for displaying actual names/people: this would allow the component to display the names more correctly, as not all names have all words capitalized.User
component for something else entirely: capitalizing all words can be a nuisanceI hope this makes sense :)
Beta Was this translation helpful? Give feedback.
All reactions