ionic-team / ionic-team/ionic-framework

bug: stacked cancel button should appear last in ios alert

未关闭
#26,367 3 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
package: core type: bug
主要语言
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

- [X] v4.x
- [X] v5.x
- [X] v6.x
- [ ] Nightly

### Current Behavior

When button names are long, the order of alert buttons in iOS is the reverse of that in Android.

### Expected Behavior

The order of iOS should be the same as Android.

### Steps to Reproduce

1. I see an alert for https://ionicframework.com/docs/ja/api/alert#buttons
2. Edit the html and name the 'Cancel' button 'CancelCancel (Buttons are aligned vertically)
3. Compare iOS and MD.

## iOS
![image](https://user-images.githubusercontent.com/50348650/204438354-b71ac9ac-ad6c-48d7-9d98-3eb665363127.png)

## MD
![image](https://user-images.githubusercontent.com/50348650/204438433-99bc29cc-a419-4458-9296-79ce0413b303.png)

### Code Reproduction URL

_No response_

### Ionic Info

-

### Additional Information

plz look at

### MD
https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/alert/alert.md.vars.scss#L122
### iOS
https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/alert/alert.ios.vars.scss#L129

The differences in properties affect this sort order.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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