ionic-team / ionic-team/ionic-framework

bug: ion-select radio button inner sometimes not exactly centered

Đang mở
#30,122 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
type: bug
Ngôn ngữ chính
TypeScript
Star
52.7k
Fork
13.3k
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
51

Mô tả

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/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

v8.x

### Current Behavior

The radio button inner of a selected element is on some display resolutions not perfectly centered:
![image](https://github.com/user-attachments/assets/2281faa7-7e6d-4afb-8593-e7ccfa24d3a9)

### Expected Behavior

The radio button inner should be centered on all devices

### Steps to Reproduce

look at radio buttons on different devices. Easily reproduceable if application is run in a web browser

### Code Reproduction URL

https://stackblitz.com/run?file=package.json

### Ionic Info

Ionic:

Ionic CLI : 6.18.0

Utility:

cordova-res : 0.15.4
native-run : 1.5.0

System:

NodeJS : v18.17.1
npm : 10.0.0
OS : Windows 10

### Additional Information

It seems as the inner of the radio button is positioned absolute with pixels, i temporarily fixed the problem by positioning it with the following css:
.alert-radio-icon {
display: flex;
align-items: center;
justify-content: center;
}

.alert-radio-inner {
position: unset;
}

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.