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
In addition to the uppercase and lowercase transform for text, add support for the capitalize transform as defined in CSS. This transformation is controlled by the text-transform property in the theme.
According to MDN, the rules for the capitalize transform are as follows:
Convert the first letter of each word to uppercase. Other characters remain unchanged. A letter is defined as a character that is part of Unicode's Letter or Number general categories. Any punctuation marks or symbols at the beginning of a word are ignored.
We can leverage the String#capitalize method in Ruby to complete the transformation.
The text was updated successfully, but these errors were encountered:
In addition to the uppercase and lowercase transform for text, add support for the capitalize transform as defined in CSS. This transformation is controlled by the
text-transform
property in the theme.According to MDN, the rules for the capitalize transform are as follows:
We can leverage the String#capitalize method in Ruby to complete the transformation.
The text was updated successfully, but these errors were encountered: