<ion-button color="primary" size="large" class="button-inner" style="min-width: 10em;" href="/home">
open my <br />
new app
</ion-button>
its all in capitals in two rows, how can i make “open my” be only capitalize and look like this “Open my” and how can i have “Open my” be smaller font size than “NEW APP”
I’ve tried using spans or p but i lose the two level text
AFAIK you can’t access any attributes in the shadow dom that have not been exposed via CSS properties.
I’ve got the same problem and have raised a feature request.
All of the text properties that can be inherited are inherited in a button. So the following would work in the case of a button to target all of the text:
ion-button {
text-transform: none;
}
Here’s a larger list of the inheritable font properties:
However, for the original comment, because you want them to be different while inside of the button and you have full control over the text you are adding in the button, you should wrap the text you want to customize in a span and a div.
<ion-button size="large" class="two-lines">
<div>
<span>Open my</span><br>
new app
</div>
</ion-button>