ionic-team / ionic-team/ionic-framework

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

Ouverte
#21,037 1 commentaire 5 réactions 0 personnes assignées Voir sur GitHub
package: core type: bug
Langage dominant
TypeScript
Étoiles
52.7k
Forks
13.3k
Merge moyen
1 j 15 h
PR mergées (30 j)
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.

![help](https://user-images.githubusercontent.com/20550508/79245649-a9e8c100-7e78-11ea-8ed9-69c25b14b00c.png)

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
```

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, ios, typescript
Domaine
frontend, mobile
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.