Reputation: 171
I have a problem with ion-button
in ionic v4
If I write in my app
<ion-button>Hi</ion-button>
And run the application, the app show the button with te text in uppercase I need the buttons to be shown with the text as I wrote it. Please
Upvotes: 14
Views: 21462
Reputation: 357
You can add this style in the global.scss
ion-button { text-transform: none; }
I have tested this code and it works well
Upvotes: 4
Reputation: 52665
In ionic-5, in theme/variables.css
, you could add the following
ion-button {
text-transform: none;
}
This would apply for the entire app. Also refer this github issue comment.
Upvotes: 44
Reputation: 49
Try to use mode="ios". Tested on ionic 5 :
<ion-button mode="ios">Your Text</ion-button>
Upvotes: 4
Reputation: 279
Try to use text-capitalize
, for every first words in UperCase
<span text-capitalize>hi</span>
or text-transform
, for normal text
<span style="text-transform:none!important;">Hi Hi</span>
For more examples and other utilities check this doc, you'll like!
Upvotes: 12
Reputation: 5700
You can solve it by adding just inline css as following :
<ion-button style="text-transform:none">Your Text</ion-button>
Upvotes: 8