Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab label not horizontally centered with icon #15273

Closed
gabrielmaldi opened this issue Aug 21, 2018 · 3 comments
Closed

Tab label not horizontally centered with icon #15273

gabrielmaldi opened this issue Aug 21, 2018 · 3 comments

Comments

@gabrielmaldi
Copy link

Bug Report

Ionic Info

Run ionic info from a terminal/cmd prompt and paste the output below.

Ionic:

   ionic (Ionic CLI)          : 4.1.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.3
   @angular-devkit/core       : 0.7.4
   @angular-devkit/schematics : 0.7.4
   @angular/cli               : 6.1.4
   @ionic/ng-toolkit          : 1.0.7
   @ionic/schematics-angular  : 1.0.5

Capacitor:

   capacitor (Capacitor CLI) : 1.0.0-beta.6
   @capacitor/core           : 1.0.0-beta.6

System:

   NodeJS : v8.11.1 (/Users/gabrielm/n/bin/node)
   npm    : 6.4.0
   OS     : macOS High Sierra

Describe the Bug

screen shot 2018-08-21 at 6 02 16 pm

Each tab's label is left aligned.

If the label is short (e.g. "Hi") you can see this clearly; but it's even noticeable with "normal" labels like "Home".

Labels should be horizontally aligned with icons.

This seems to get fixed adding text-align: center; to .tab-btn-text.

Steps to Reproduce

Just create an app based on the tabs template: ionic start myApp tabs --type=angular

@favrio
Copy link

favrio commented Oct 10, 2018

The same problem on 4.0.0-beta.12, the css rule about align is missing.

@mela93
Copy link

mela93 commented Oct 23, 2018

The same problem on 4.2.1,
and add below at tabs.pages.scss, not working.
image

.tab-btn-text {
    text-align: center !important;
}

Ionic info

Ionic:

   ionic (Ionic CLI)             : 4.2.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0-beta.13
   @angular-devkit/build-angular : 0.8.6
   @angular-devkit/schematics    : 0.8.6
   @angular/cli                  : 6.2.6
   @ionic/angular-toolkit        : 1.0.0

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : none
   Cordova Plugins       : no whitelisted plugins (1 plugins total)

System:

   ios-deploy : 1.9.2
   NodeJS     : v8.9.4 (/usr/local/Cellar/node/9.4.0/bin/node)
   npm        : 5.6.0
   OS         : macOS
   Xcode      : Xcode 10.0 Build version 10A255

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 28, 2018

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants