ionic-team / ionic-team/ionic-framework

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

Abierto
#30,122 1 comentario 0 reacciones 0 asignados Ver en GitHub
type: bug
Lenguaje dominante
TypeScript
Estrellas
52.7k
Forks
13.3k
Merge medio
1 d 15 h
PR fusionados (30 d)
51

Descripción

### 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;
}

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.