Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Display Problem on Mobile Device

$
0
0

@PratikVaity wrote:

I am having problem with the display. When I open my ionic app on desktop i get the below UI which I want.

But I when I build this and run on my mobile device I get the following .

This is my Variable SCSS Code.

ion-button {
  --ion-color-primary:linear-gradient(to right, #c33764 0%, #1d2671 100%);
   background: var(--ion-color-primary);
}
ion-content {
    // border-top-right-radius: 20px;
    --ion-color-primary:linear-gradient(to right, #c33764 0%, #1d2671 100%);
    --background:  var(--ion-color-primary);
}

ion-toolbar{
  padding-left: 10%;
  border-bottom-left-radius: 70%;
  --ion-color-primary:linear-gradient(to right, #c33764 0%, #1d2671 100%);
  --background:  var(--ion-color-primary);
  color:white;

}

Does anyone has solution to this…why only my ion-button changes but not the content and the toolbar???

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>