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

bug: ion-segment (iOS) not centered like title with ion-buttons #21037

Open
lucaslevin opened this issue Apr 14, 2020 · 0 comments
Open

bug: ion-segment (iOS) not centered like title with ion-buttons #21037

lucaslevin opened this issue Apr 14, 2020 · 0 comments
Labels
package: core @ionic/core package type: bug a confirmed bug report

Comments

@lucaslevin
Copy link

Bug Report

Ionic version:

[x] 5.0.7

Current behavior:

Ion-segment (at least iOS version) is getting pushed and is not centered with ion-buttons.

Expected behavior:

Should be centered.

help

The dark header is from iTunes app (in Dark Mode)

Steps to reproduce:

Related code:

<ion-header translucent="true">
  <ion-toolbar>
    <ion-buttons slot="start">
      <ion-button>
        Genres
      </ion-button>
    </ion-buttons>
    <ion-segment color="primary" (ionChange)="segmentChanged($event)">
      <ion-segment-button value="1">
        <ion-label>One</ion-label>
      </ion-segment-button>
      <ion-segment-button value="2">
        <ion-label>Two</ion-label>
      </ion-segment-button>
    </ion-segment>
    <ion-buttons slot="end">
      <ion-button>
        <ion-icon slot="icon-only" name="swap-vertical-outline"></ion-icon>
      </ion-button>
    </ion-buttons>
  </ion-toolbar>
</ion-header>

Other information:

Ionic info:

   Ionic CLI                     : 6.5.0 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.0.7
   @angular-devkit/build-angular : 0.901.1
   @angular-devkit/schematics    : 9.1.1
   @angular/cli                  : 9.1.1
   @ionic/angular-toolkit        : 2.2.0

Capacitor:

   Capacitor CLI   : 2.0.1
   @capacitor/core : 2.0.1

Utility:

   cordova-res (update available: 0.11.0) : 0.6.0
   native-run (update available: 1.0.0)   : 0.2.8

System:

   NodeJS : v12.7.0 (/usr/local/Cellar/node/12.7.0/bin/node)
   npm    : 6.14.4
   OS     : macOS Catalina
@ionitron-bot ionitron-bot bot added the triage label Apr 14, 2020
@liamdebeasi liamdebeasi added package: core @ionic/core package type: bug a confirmed bug report labels Apr 14, 2020
@ionitron-bot ionitron-bot bot removed the triage label Apr 14, 2020
@brandyscarney brandyscarney added type: bug a confirmed bug report and removed type: bug a confirmed bug report labels Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package type: bug a confirmed bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants