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.

Various theming not working at 1.6.6

See original GitHub issue

Description

When I upgraded to 1.6.5 -> 1.6.6 on a large monorepo gatsby project, bg colors and various other theming things stopped working

Link to Reproduction

My code base is private and there are too many moving parts

Steps to reproduce

  1. Upgrade from 1.6.5 to 1.6.6
  2. Start gatsby as usual
  3. bg in <Box>` doesn’t swap out image

Expect to see var(--chakra-colors-blue-700)

Chakra UI Version

1.6.6

Browser

chrome 93

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

I’m not sure if it’s best to close this or not. I have a non open source project and its not feasible to create an MVP.

Did anything change in the past few weeks that make <Box bg='blue.700'> not switch out colors?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
takethefakecommented, Sep 6, 2021

Hej @tony @RIP21

Regarding the provided code sandbox, you may didn’t factor into account, that baseStyle is not always the resulting style, since chakra applies the concept of variants.

Since the Button-Component has the default variant: solid the solid-styles are applied onto the base styles which results in your described behavior, that e.g. a background color isn’t applied, since it is defined in the solid variant as well.

A good approach to ensure that your styles are applied is by styling a variant instead, or by defining a dedicated variant for your use case, or using color-schemes.

See attached code sandbox for clarification: https://codesandbox.io/s/affectionate-engelbart-9rxou?file=/src/index.tsx

Does this solve your questions regarding theming?

1reaction
takethefakecommented, Sep 7, 2021

@tony thanks for putting all this effort into this, but since reproduction seems to be so difficult, I guess that this is the result of a combination of errors, why it is quite difficult and time-intensive to handle on our side. That’s why I would close this issue for now.

If you or someone else somehow finds a way to reproduce this in an easy way, feel free to reach out and we’ll do our best to help.

So long, I wish you all the best in the further development of the project!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with menu Ocean Extra 1.6.6 and OceanWP1.9.0
Hi. After updating the Theme OceanWp to the version 1.9.0, I get an issue with the menu. The Woocommerce sidebar appears on the...
Read more >
WooCommerce 1.6.6 -> 2.0 - Plugin and theme compatibility
This document provides handy code snippets, outlines some of the main changes in WC 2.0 and explains how you can maintain compatibility.
Read more >
Angular Material Theme Is Not Getting Applied with Angular ...
I have an angular application with version 11 and I am using angular material with version 11 as well. Issue : The angular...
Read more >
Changelog - Get Bowtied
... Fixed: RTL issues; Maintenance: Various small styling fixes and improvements. The Hanger Extender plugin updated to 1.6.6.
Read more >
Can't Find Theme Folder | ExpressionEngine 2 Tech Support
Theme Folder Path: /mnt/local/home/mattybinks/helloburbs/themes/. I'm not sure why this is not working. I also read through this related ...
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