Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<ion-radio> styling inner icon with the shadow dom, radio-inner #15729

Closed
osman144 opened this issue Sep 24, 2018 · 2 comments
Closed

<ion-radio> styling inner icon with the shadow dom, radio-inner #15729

osman144 opened this issue Sep 24, 2018 · 2 comments
Assignees

Comments

@osman144
Copy link

osman144 commented Sep 24, 2018

Bug Report

Ionic Info

Ionic:

   ionic (Ionic CLI)          : 4.1.2
   Ionic Framework            : @ionic/angular 4.0.0-beta.11
   @angular-devkit/core       : 0.7.5
   @angular-devkit/schematics : 0.7.5
   @angular/cli               : 6.1.0
   @ionic/ng-toolkit          : 1.0.7
   @ionic/schematics-angular  : 1.0.5

Describe the Bug

Ion-radio contains

<div class="radio-icon">
     <div class="radio-inner"></div>
</div> 

within the shadow dom.

I'm able to style the outer icon within the ion radio using CSS variables.

But I'm unable to style the inner icon with the class name radio-inner. There doesn't seem to be a way to style this element even with CSS variables.

Steps to Reproduce
Steps to reproduce the behavior:

  1. Launch the App

Related Code

<ion-radio-group>
    <ion-item lines="full">
          <ion-label>
               <ion-text>
                     <h3>Text</h3>
               </ion-text>
               <ion-text>Text</ion-text>
           </ion-label>
           <ion-radio mode="md" class="text-type-radio" checked="{{text.active}}"></ion-radio>
                    
    </ion-item>
</ion-radio-group> 

Expected Behavior
There should be a way to simply style this inner icon; even with CSS variables, I'm unable to do so.
Additional Context

The problem:
screen shot 2018-09-23 at 9 01 03 pm

This is how ideally I would like it to look like:
screen shot 2018-09-23 at 9 02 20 pm

@ionitron-bot ionitron-bot bot added the triage label Sep 24, 2018
@manucorporat manucorporat self-assigned this Sep 25, 2018
@ionitron-bot ionitron-bot bot removed the triage label Sep 25, 2018
@osman144
Copy link
Author

@manucorporat Looks like you just added a fix, it will be available in the next update?

@ionitron-bot
Copy link

ionitron-bot bot commented Oct 25, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants