ionic-team / ionic-team/ionic-framework

feat: support dynamic tab button layout based on orientation

未关闭
#27,429 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
package: core type: feature request
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 15 小时
30 天内合并 PR
51

描述

### 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_

贡献指南

打开贡献指南

调研方向

Start with the tabs component demonstrated in the Ionic tabs API documentation and compare its current behavior with the supplied native screenshots. The work is done when tab buttons adapt to landscape orientation and the footer/tab bar changes appearance as content reaches the bottom.

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
frontend, mobile-dev
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。