bug: cannot set box-shadow on menu when split pane is visible
See original GitHub issueBug 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:
- Created 3 years ago
- Reactions:4
- Comments:12 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes.
You can see, that both ‘box-shadow’ and ‘transform’ cannot be custom styled because they are !important.
Can confirm also having issues with the styling of shadows on split-pane.