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.

bug: variable --border-width not work in ion-toolbar

See original GitHub issue

Bug Report

Ionic version:

[x] 4.x

Current behavior: in ios mode the css variable border-width in the elemet ion-toolbar is not work

Expected behavior: this works when I set the variable --border-width: 0px;

Steps to reproduce: customise ion-toolbar element and see in ios mode

Related code:

ion-toolbar{
  --border-width: 0px;
}

Other information: this it work

ion-toolbar{
  --border-width: 0px !important;
}

Ionic info:

Ionic:

   Ionic CLI                     : 5.0.1 (/Users/rodrigoklayton/.npm-global/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.2.3

Capacitor:

   Capacitor CLI   : not installed
   @capacitor/core : not installed

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : ios 5.0.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.0.1, (and 5 other plugins)

Utility:

   cordova-res : 0.3.0
   native-run  : not installed

System:

   ios-sim : 8.0.1
   NodeJS  : v12.4.0 (/usr/local/Cellar/node/12.4.0/bin/node)
   npm     : 6.9.0
   OS      : macOS High Sierra
   Xcode   : Xcode 10.1 Build version 10B61

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
liamdebeasicommented, Jun 7, 2019

Hi there,

Thanks for the issue! I was able to reproduce this. Looks like the issue is here: https://github.com/ionic-team/ionic/blob/master/core/src/components/header/header.ios.scss#L8

We will look into a fix for this. Thanks!

0reactions
ionitron-bot[bot]commented, Mar 11, 2020

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

bug: variable --border-width not work in ion-toolbar ... - GitHub
Bug Report. Ionic version: [x] 4.x. Current behavior: in ios mode the css variable border-width in the elemet ion-toolbar is not work.
Read more >
Ion-toolbar border color not working-How do I use custom ...
I am trying to use custom CSS properties , but it does not seem to work! Login.html <ion-content> <ion-header [translucent]="true"> <ion-toolbar ...
Read more >
Update modal body using variables - Ionic Forum
to update the text inside the modal, but it seems that the 4 IDs inside the p tags doesn't exist until I open...
Read more >
CSS Variables | Amplify UI for Angular
These variables are used in Amplify UI. You can override these values to update the look and feel. Amplify CSS Variable, Default Value....
Read more >
5 Examples of the new Ionic 6 Bottom Sheet Modal
<ion-header> <ion-toolbar> <ion-title>Modal Content</ion-title> ... Because the bottom sheet usually doesn't cover your whole screen, ...
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