ionic-team / ionic-team/ionic-framework

bug: (ion-col) offset, push, and pull props are not RTL-aware

オープン
#26,088 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
package: core type: bug
主要言語
TypeScript
スター
52.7k
フォーク
13.3k
平均マージ
1日 15時間
マージ済み PR(30日)
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

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

### Current Behavior

The `offset`, `push`, and `pull` props for `ion-col` always offset/push/pull in the same direction (for example, always to the right for `offset`), regardless of whether the page is in LTR or RTL.

### Expected Behavior

The display of the columns should be a mirror image between LTR and RTL. For example, `offset` should push to the right in LTR and to the left in RTL.

### Steps to Reproduce

Offset: https://stackblitz.com/edit/rnuv7g?file=index.html
Push/pull: https://stackblitz.com/edit/jmyavm?file=index.html

Change the `dir` on the `body` tag from `ltr` to `rtl`. Notice that the layout does not get mirrored properly.

### Code Reproduction URL

https://stackblitz.com/edit/rnuv7g?file=index.html + https://stackblitz.com/edit/jmyavm?file=index.html

### Ionic Info

See Stackblitzes

### Additional Information

_No response_

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Reproduce the issue using the two StackBlitz examples linked in the report, changing the body direction from ltr to rtl. Start at the ion-col component and trace how offset, push, and pull are applied; done means the column layout mirrors correctly in both directions.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
frontend, internationalization
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。