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]: Possible missing tokens

See original GitHub issue

Package

@carbon/react

Browser

No response

Package version

v11

React version

16

Description

I may be missing something, or very new to sass and carbon 11, but I been grabbing tokens of the @carbon/styles as such

@use '@carbon/styles';
...
.someClass {
  //  background-color: $interactive-01; <----carbon v10 with import
   background-color: styles.$button-primary; <-----carbon 11 using use
}

but for some reason, I cannot find the replaced tokens for

interactive-01 
interactive-02 
interactive-03 
interactive-04 
image

using @use '@carbon/styles'; or @use '@carbon/colors;

I been able to find other colors/styles tokens but not these ones.

CodeSandbox example

N/A

Steps to reproduce

See description

Code of Conduct

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
TannerScommented, Apr 8, 2022

hey @jnm2377 thanks that appears to work, but I have some comments.

What works

  1. Webpack builds using this
  2. Styles work the way they should

issues

  1. Unlike the other use imports for tokens/styles/ etc, my IDEs cant resolve this path so it comes up as invalid and is a bit misleading unless i wait for the compiling and find the UI element and see if the color reflects
  2. The docs mention the change between the the interactice-0* tokens to the button-primary and button-secondary, but theese docs are listed under the theme import, meaning, if we have to use '@carbon/react/scss/components/button/tokens'; for these updated tokens, i think the docs should be updated (unless I missed something)

😃

1reaction
TannerScommented, Apr 7, 2022

Hey @jnm2377 , for me, I been able to find and use every replacement except the interactive-0* ones, I think mostly the -01, -02. I forgot if -03 and -04 was problematic.

Like, the way i am importing the tokens so far has worked for everything except those so Im wondering if its a bug, are they imported through another source or something.

I was using @use '@carbon/styles' for the tokens and I dont remmeber if the /colors import had same issue, but using that import every token was found except for the oens I tried, button-primary, button-secondary

Read more comments on GitHub >

github_iconTop Results From Across the Web

PSA** Possible Bug Fixes For Battle Pass Tokens Missing In ...
In this video i talk about a Possible Bug Fixes For Battle Pass Tokens Missing In Call Of Duty MW2, WZ2 And DMZ....
Read more >
Resolved! Possible missing status tokens? - BoardGameGeek
I just finished taking the inventory of all items, and everything seems to be there... except I only have 48 status tokens instead...
Read more >
How to fix missing Battle Pass Tokens glitch in Modern ...
This new in-game bug accounts for and completes the token progression ... can obtain the missing Battle Pass token by restarting the game....
Read more >
CoD MW2: How To Fix Battle Pass Tokens Not Showing Bug
This guide explains how to fix the issue of Battle Pass tokens not showing in Call of Duty: Modern Warfare 2 and Warzone...
Read more >
Missing return value bug — At least 130 tokens affected
Missing return value bug — At least 130 tokens affected. tl;dr There is a critical bug in a lot of ERC20 token contracts...
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