ionic-team / ionic-team/ionic-framework
bug: ion-segment (iOS) not centered like title with ion-buttons
- Dominant language
- TypeScript
- Stars
- 52.7k
- Forks
- 13.3k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 51
Description
# 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.

The dark header is from iTunes app (in Dark Mode)
**Steps to reproduce:**
**Related code:**
```
Genres
One
Two
```
**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
```
Contributor guide
Research direction
Start by reproducing the issue on iOS with the provided ion-header, ion-toolbar, ion-buttons, and ion-segment markup. Compare the segment position with the title when start and end buttons are present; done means the segment remains centered as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, ios, typescript
- Domain
- frontend, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100