question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Ionic v4.0.0-beta.8] ios CSS fails (CSS not added correctly top ion-radio if using split pane and ion-* inside menu)

See original GitHub issue

TL;DR Repository for checking:

https://github.com/paulstelzer/ionic-testing

If you run npm install and npm start you will see in ios mode the radio button is not working correctly (css is wrong and after one change it’s not working anymore). If you open app.component.html and remove the part between <ion-content> it will working 😄

UPDATE 2018-09-12: I think it has not to do with the CSS. I replaced the content of the radio component radio.ios.scss with radio.md.scss but the issue was the same. So I think something else in ios mode generates that issue.

In my case it also effects other components like <ion-item> and more which do not have the correct css styles

Describe the Bug I tested my app on iOS (Safari) where the ios mode is standard. I found out that most of the components looks ugly. Even more the ion-input / ion-radio and more not working correctly / don’t look as expected. Afterwards I tested in on Chrome by adding the ios-mode to the components (look at the code below)

In md-mode everything looks good:

md-mode

In ios-mode the same code looks like this:

ios-mode

With this I cannot even switch to “Deutsch” (German)

Both screenshots are from latest Chrome - the only difference is the mode (ios vs md). I couldn’t figured out why the ios-mode not working correctly, maybe another one has an idea / a fix.

Related Code

<ion-radio-group [(ngModel)]="selectedLanguage" (click)="radioButtonGroupClicked()">
  <ion-item mode="ios" *ngFor="let lang of languages">
    <ion-label mode="ios">{{lang.name}}</ion-label>
    <ion-radio mode="ios" slot="start" (ionSelect)="applyLanguage(lang.code)" [value]="lang.code" [id]="lang.code" name="language"></ion-radio>
  </ion-item>
</ion-radio-group>

BUT NOW THE FUNNY THING: This only happens if a <ion-item> / <ion-list> / <ion-item-group> is in the menu! I created a repository so you can check it 😃

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
luishmcmorenocommented, Sep 10, 2018

I have similar problems with styles not being injected correctly. I think it could be something related with lazy loading.

Maybe this issue is related to https://github.com/ionic-team/ionic/issues/15174 .

0reactions
ionitron-bot[bot]commented, Oct 27, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Ionic v4.0.0-beta.8] ios CSS fails (CSS not added correctly top ...
[Ionic v4.0.0-beta.8] ios CSS fails (CSS not added correctly top ion-radio if using split pane and ion-* inside menu) #15514.
Read more >
ionic 4 custom ion-menu width not working in ios
Try to add ion-menu as a selector in css: ion-menu.appMainmenu { --width: 100px; }.
Read more >
ion-radio Component: Radio Property for iOS and Android
Radio components should be used inside of ion-radio-groups on iOS and Android devices. Read to learn more about radio property usage and installation....
Read more >
Ionic Responsive Design and Navigation for All Screens
You already know that you can create web and mobile apps from one codebase with Ionic, but having a responsive design that looks...
Read more >
(ionchange) in ion-split-pane reacts to the keyboard-event
Hello ionic team, when doing tests with ion-split-pane I noticed that the ionChange event in this component interacts with the keyboard ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found