[Skip to main content](#vessel-content)

#   Dark mode styles bleeding into other areas

##

- **[pvukovic](/forum/user/76678-pvukovic "View pvukovic's Profile")**
- [![pvukovic's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/76678-pvukovic "View pvukovic's Profile") Topic Author
- [ Offline](/forum/user/76678-pvukovic)

Less More

- Posts: 19
- Thank you received: 3
-
-

2 years 10 months ago [\#357875](#357875) by [pvukovic](/forum/user/76678-pvukovic "View pvukovic's Profile")  *[Dark mode styles bleeding into other areas](/forum/25-install-update/907516-dark-mode-styles-bleeding-into-other-areas#357875 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.2 -- Browser(s) name and version -- : Chrome  Hi,  I noticed a problem with Hikashop dark mode CSS.  The style is bleeding into other areas of the administration by forcing a dark background that doesn't work with the rest of the interface.  For example, here is what happens when I try to open a &quot;Conditions&quot; modal in Advanced Module Manager:   prnt.sc/i0XODdt82DTy  Notice the problematic body element class that seems to be used by other components, not just Hikashop.  Can you please advise on how to turn off Dark Mode support or issue a fix? As a workaround, I resorted to adding this custom CSS to the administrator template to prevent this from happening:  @media (prefers-color-scheme: dark) {  body.contentpane.component { background-color:initial !important; }  }  Thanks, Peter")* was created by *[pvukovic](/forum/user/76678-pvukovic "View pvukovic's Profile")*

-- HikaShop version -- : 5.0.2
-- Joomla version -- : 4.4.4
-- PHP version -- : 8.2
-- Browser(s) name and version -- : Chrome

Hi,

I noticed a problem with Hikashop dark mode CSS.

The style is bleeding into other areas of the administration by forcing a dark background that doesn't work with the rest of the interface.

For example, here is what happens when I try to open a "Conditions" modal in Advanced Module Manager:
[ prnt.sc/i0XODdt82DTy](https://prnt.sc/i0XODdt82DTy)

Notice the problematic body element class that seems to be used by other components, not just Hikashop.

Can you please advise on how to turn off Dark Mode support or issue a fix? As a workaround, I resorted to adding this custom CSS to the administrator template to prevent this from happening:

@media (prefers-color-scheme: dark) {

body.contentpane.component {
background-color:initial !important;
}

}

Thanks,
Peter

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNzUxNi1kYXJrLW1vZGUtc3R5bGVzLWJsZWVkaW5nLWludG8tb3RoZXItYXJlYXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

2 years 10 months ago -  2 years 10 months ago [\#357876](#357876) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Dark mode styles bleeding into other areas](/forum/25-install-update/907516-dark-mode-styles-bleeding-into-other-areas#357876 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.2 -- Browser(s) name and version -- : Chrome  Hi,  I noticed a problem with Hikashop dark mode CSS.  The style is bleeding into other areas of the administration by forcing a dark background that doesn't work with the rest of the interface.  For example, here is what happens when I try to open a &quot;Conditions&quot; modal in Advanced Module Manager:   prnt.sc/i0XODdt82DTy  Notice the problematic body element class that seems to be used by other components, not just Hikashop.  Can you please advise on how to turn off Dark Mode support or issue a fix? As a workaround, I resorted to adding this custom CSS to the administrator template to prevent this from happening:  @media (prefers-color-scheme: dark) {  body.contentpane.component { background-color:initial !important; }  }  Thanks, Peter")*

Hello,

Thanks for your return, it seems we missed a selector error!
I will tell you how to solve this step by step :
**1.** Go to your Css folder :
**=&gt; *YourWebsite*\\media\\com\_hikashop\\css**
**2.** Open the **backend\_default** css file (or backend_custom, if you use a custom version)
**3.** Go around **line 5110**, you will see : Code:

/* DARK Mode vers */ @media (prefers-color-scheme: dark) { div#hikashop_main_content.hika_j5 html body, /* Vex Content */ body.contentpane.component, div#hikashop_main_content.hika_j5 .ͼ2...

**4.** Remove "**body.contentpane.component,**" like this :
[ ![alt](https://i.ibb.co/SxRJQgJ/screenshot1.png) ](https://i.ibb.co/SxRJQgJ/screenshot1.png "alt")

Once again, thanks for your return
Regards

Last edit: 2 years 10 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

The following user(s) said Thank You: [pvukovic](/forum/user/76678-pvukovic "View pvukovic's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNzUxNi1kYXJrLW1vZGUtc3R5bGVzLWJsZWVkaW5nLWludG8tb3RoZXItYXJlYXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[pvukovic](/forum/user/76678-pvukovic "View pvukovic's Profile")**
- [![pvukovic's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/76678-pvukovic "View pvukovic's Profile") Topic Author
- [ Offline](/forum/user/76678-pvukovic)

Less More

- Posts: 19
- Thank you received: 3
-
-

2 years 10 months ago [\#357973](#357973) by [pvukovic](/forum/user/76678-pvukovic "View pvukovic's Profile")  Replied by *[pvukovic](/forum/user/76678-pvukovic "View pvukovic's Profile")* on topic *[Dark mode styles bleeding into other areas](/forum/25-install-update/907516-dark-mode-styles-bleeding-into-other-areas#357973 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.2 -- Browser(s) name and version -- : Chrome  Hi,  I noticed a problem with Hikashop dark mode CSS.  The style is bleeding into other areas of the administration by forcing a dark background that doesn't work with the rest of the interface.  For example, here is what happens when I try to open a &quot;Conditions&quot; modal in Advanced Module Manager:   prnt.sc/i0XODdt82DTy  Notice the problematic body element class that seems to be used by other components, not just Hikashop.  Can you please advise on how to turn off Dark Mode support or issue a fix? As a workaround, I resorted to adding this custom CSS to the administrator template to prevent this from happening:  @media (prefers-color-scheme: dark) {  body.contentpane.component { background-color:initial !important; }  }  Thanks, Peter")*

Thanks, but wouldn't this change disappear on the next Hikashop update (unless you plan to include a fix)?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNzUxNi1kYXJrLW1vZGUtc3R5bGVzLWJsZWVkaW5nLWludG8tb3RoZXItYXJlYXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

2 years 10 months ago [\#357975](#357975) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Dark mode styles bleeding into other areas](/forum/25-install-update/907516-dark-mode-styles-bleeding-into-other-areas#357975 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.2 -- Browser(s) name and version -- : Chrome  Hi,  I noticed a problem with Hikashop dark mode CSS.  The style is bleeding into other areas of the administration by forcing a dark background that doesn't work with the rest of the interface.  For example, here is what happens when I try to open a &quot;Conditions&quot; modal in Advanced Module Manager:   prnt.sc/i0XODdt82DTy  Notice the problematic body element class that seems to be used by other components, not just Hikashop.  Can you please advise on how to turn off Dark Mode support or issue a fix? As a workaround, I resorted to adding this custom CSS to the administrator template to prevent this from happening:  @media (prefers-color-scheme: dark) {  body.contentpane.component { background-color:initial !important; }  }  Thanks, Peter")*

Hello,

Yes, as usual, we use your feedback to improve HikaShop, and so if there is a problem that you report to us, we generally add fixes to our future packages.
Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNzUxNi1kYXJrLW1vZGUtc3R5bGVzLWJsZWVkaW5nLWludG8tb3RoZXItYXJlYXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.054 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
