Ionic-framework: [feature request] NavBar/ToolBar subTitle

Created on 25 Mar 2016  路  11Comments  路  Source: ionic-team/ionic-framework

Short description of the problem:

I would like to be possible to show a subtitle text below the title with smaller text and a little opaque.

What behavior are you expecting?

To have a <ion-subtitle> tag.

Which Ionic Version? 2.x

Most helpful comment

This snippet work perfectly

<ion-title>
   <span>Title</span> <br>
   <small>Subtitle</small>
</ion-title>

@rnarian Don't use block tag like div cause you break the ellipsis of the title on small device.

All 11 comments

Bump

<ion-view title="<div class='main-title' style='line-height: initial;'>Main Title</div><div class='sub-title' style='line-height: initial;font-size: 12px;color: #333;'>Sub Title</div>"></ion-view>

This worked :)

Hello everyone! Thanks for the feature request. I'm going to move this issue over to our internal list of feature requests for evaluation. We are continually prioritizing all requests that we receive with outstanding issues. We are extremely grateful for your feedback, but it may not always be our next priority. I'll copy the issue back to this repository when we have begun implementation. Thanks!

This issue was moved to driftyco/ionic-feature-requests#25

+1

Is that a private repository @jgw96 ?

This can be archived by wrapping your title into a div (to force into display:block) and adding a second div for the subtitle where you would only need to adjust font-size (and opacity):

<ion-title>
  <div>Regular Title</div>
  <div style="font-size: 12px">Subtitle</div>
</ion-title>

bildschirmfoto 2017-03-01 um 16 01 39

This snippet work perfectly

<ion-title>
   <span>Title</span> <br>
   <small>Subtitle</small>
</ion-title>

@rnarian Don't use block tag like div cause you break the ellipsis of the title on small device.

@5im0n Good catch. 馃憤

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BilelKrichen picture BilelKrichen  路  3Comments

brandyscarney picture brandyscarney  路  3Comments

masimplo picture masimplo  路  3Comments

vswarte picture vswarte  路  3Comments

MrBokeh picture MrBokeh  路  3Comments