ionic-team / ionic-team/ionic-framework

feat: support dynamic tab button layout based on orientation

Ouverte
#27,429 8 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
package: core type: feature request
Langage dominant
TypeScript
Étoiles
52.7k
Forks
13.3k
Merge moyen
1 j 15 h
PR mergées (30 j)
51

Description

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v7.x

### Current Behavior

Guidelines: https://developer.apple.com/design/human-interface-guidelines/tab-bars

Natively (photos app), tabs look like this:
| Behavior | Native | Ionic |
|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Default tabs ✅ | | |

When the content is scrolled to the bottom, it functions like:
```html

```
But in ionic it stays the same:
| Behavior | Native | Ionic |
|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Scrolled footer ❌ | | |

When rotated to landscape mode, tabs look like this (text next to icon), but in ionic the text stays below the icon:
| Behavior | Native | Ionic |
|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Landscape mode ❌ | | |

### Expected Behavior

Should replicate native behavior

### Steps to Reproduce

Demo in https://ionicframework.com/docs/api/tabs

### Code Reproduction URL

https://ionicframework.com/docs/api/tabs

### Ionic Info

Ionic:

Ionic CLI : 7.1.1

Utility:

cordova-res : 0.15.4
native-run : 1.7.2

System:

NodeJS : v18.15.0
npm : 9.5.0
OS : macOS Unknown

### Additional Information

_No response_

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

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