- Notifications
You must be signed in to change notification settings - Fork 13.4k
Open
Labels
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already include this feature request, without success.
Describe the Feature Request
Make native input accessible via part for CSS.
Describe the Use Case
For example, change the font of the input. Make 0 and O distinguishable.
Describe Preferred Solution
Just add part="native" to the input element.
I would do this for the native label too.
Describe Alternatives
Without part select, the font changes would also affect the label, which is undesirable. This is because Ionic changes their inputs with label inside.
Related Code
ion-input.id { &::part(native) { font-family: monospace; font-variant-numeric: slashed-zero; // optional for other fonts } }Additional Information
Ionic v8, Angular v19, Chrome v146
Reactions are currently unavailable