I'm struggling to adjust the position of the icon in an Ionic radio button so that it sits a bit higher, but I can't seem to figure out how to do it.
Below is the code snippet for reference:
// HTML
<ion-radio class="radio-input" mode="md" slot="start" [value]="data"></ion-radio>
// SCSS
.radio-input {
// there are other styles here not relevant to this issue
}
It appears that the .radio-icon
class is what controls the part of the button I want to adjust, but my attempts at applying styling to it within the component's stylesheet have been unsuccessful. Targeting the .radio-input
class affects the entire button rather than just the specific element I need to modify.
Unfortunately, simply hiding the element and creating a "fake" radio input isn't an option in this scenario.
Can anyone suggest the correct approach to resolve this issue?
Edit: The project is using Ionic 6.