material icon indicating copy to clipboard operation
material copied to clipboard

Stop using `text-transform: uppercase`

Open jelbourn opened this issue 11 years ago • 5 comments

Button, select, tabs, and toast all use text-transform: uppercase to force upper case characters to match the Material Design spec. However, this is fraught with i18n problems; in some locales, changing the capitalization of a word can change its meaning.

Some examples: Dotted and dotless I in Turkish The German ẞ has no canonical upper-case The Greek Sigma has more than one lower-case form

jelbourn avatar Mar 19 '15 01:03 jelbourn

Angular handles lowercasing/uppercasing specially when the user's locale is Turkish. Not sure if this is sufficient for other locales, though. (If it were, we could somehow replace text-transform: uppercase with a call to angular.uppersace(...).)

Shouldn't browsers handle similar locale-specific issues themselves ? Grrr...

As a sidenote, capitalizing the Greek sigma should not be an issue (it is handled properly in the supported browsers).

gkalpak avatar Mar 19 '15 10:03 gkalpak

Maybe an i18n override class you could add to the body would be a good idea for languages that browsers have trouble with.

epelc avatar Mar 19 '15 15:03 epelc

Due to international concerns, we are removing the presumptive transform text-transform: uppercase. A workaround will be posted in the release notes.

All Angular Material demos will be updated; where the labels are specifically and manually uppercased.

ThomasBurleson avatar Aug 14 '15 17:08 ThomasBurleson

@ThomasBurleson, this is great how you and your team are paying attention to i18n. There are so many great things about both Angularjs, MD. What you folks are doing to make them work together is great, too. Keep up the good work.

innerpeace0 avatar Aug 14 '15 18:08 innerpeace0

This issue is still pending

atul221282 avatar Dec 14 '16 07:12 atul221282