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: cannot set box-shadow on menu when split pane is visible

See original GitHub issue

Bug Report

Ionic version: [x] 5.x

*Current behavior: box-shadow of ion-menu inside ion-split-pane cannot be styled because the local css rule uses !important and can therefore not be overwritten. This could be the case in other ionic components as well.

Expected behavior: CSS Rules of slotted content should not be marked with !important. Otherwise those rules cannot not be overwritten from outside.

Related code: `:host(.split-pane-visible) ::slotted(.split-pane-side), :host(.split-pane-visible) ::slotted(.split-pane-main) { @include position(0, 0, 0, 0);

position: relative;

/* stylelint-disable-next-line declaration-no-important */ box-shadow: none !important; z-index: 0; }`

Other information:

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
NisStromcommented, Jun 22, 2020

Yes.

You can see, that both ‘box-shadow’ and ‘transform’ cannot be custom styled because they are !important.

0reactions
julianpoycommented, Nov 11, 2022

Can confirm also having issues with the styling of shadows on split-pane.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: cannot set box-shadow on menu when split pane is ...
box-shadow of ion-menu inside ion-split-pane cannot be styled because the local css rule uses !important and can therefore not be overwritten.
Read more >
[BUG] Docked Window box-shadow hard-coded, breaks ...
I have tried all of the following classes and can't get the drop shadow to go away again… .docked-view .docked-view-right .docked-view-left{ box ......
Read more >
Box-Shadow and drop-shadow not showing on button
its working its just that the shadow opacity is too low thats why it looks like its not working. I modified the opacity...
Read more >
Ionic - override menu shadow - CodePen
Open this app on a device so that the menu is hidden by default. 16. </ion-content>. 17. </ion-menu>. 18. ​. 19. <div class='ion-page'...
Read more >
box-shadow - CSS: Cascading Style Sheets - MDN Web Docs
The box-shadow CSS property adds shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is ......
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