hi there, I have two issues where our

hi there, I have two issues where our font-weight in the customCSS isn't updating properly and our conditional css with the ~ selector isn't working. Any help is appreciated!
15 Replies
shikharTS
shikharTS4mo ago
Can you paste the code snipped that you are using for embedding and custom css?
Jessica
JessicaOP4mo ago
hi @shikharTS this is the css not working:
conditional: '.answer-content-modulevizContainer:hover ~ .answer-title-moduletitleText': { 'color': 'green', }, font-weight: '.pinboard-header-module__headerTitle': { 'font-size': '2.5rem', 'font-weight': '900', 'color': 'green', },
utsav.kapoor
utsav.kapoor4mo ago
@Jessica - It is working for us. Try 100 to see if this changes. It can be because the size is already bold so it is not showing significant changes ? cc - @Aditya @Naveen Arza
Jessica
JessicaOP4mo ago
hi @utsav.kapoor we need it to be bolder, to match other areas of our system where it's 900. Also did the conditional work as well?
Justin Mathew
Justin Mathew4mo ago
if what @Aditya and @utsav.kapoor suggested didnt work can you also try adding !important
shikharTS
shikharTS4mo ago
Also can you help us understand the usecase for conditional?
Jessica
JessicaOP4mo ago
Yes, I tried with important as well I need to make the answer title a different color when I hover over the answer box
utsav.kapoor
utsav.kapoor4mo ago
Thnaks @Jessica - We got the problem statement. We are trying to achieve this. We will respond back with a solution
Jessica
JessicaOP4mo ago
amazing, thank you @utsav.kapoor !
Aditya
Aditya4mo ago
Hi @Jessica Please try this to make font color different on hovering over the answer container - rules_UNSTABLE: { '.answer-content-modulevizContainer:hover .answer-title-moduletitleText': { color: "#34B233", "font-weight": "900" } } and let us know if it works for you
jbc
jbc4mo ago
Hi @Jessica , font-weight is usually tied to the underlying font being used. The CSS part of "font-weight": "900" only helps in setting a value and the font-family being used needs to have a support for this weight. I am assuming the fonts you are using doesn't support a darker font with 900. Can you please share your font, and I can validate if something else in our system is causing it to override instead.
sainadh
sainadh4mo ago
Following this. @Jessica As discussed, please update
Jessica
JessicaOP4mo ago
yes thank you! It's Proxima Nova & Proxima Nova Black
shikharTS
shikharTS4mo ago
Just for clarity @Jessica you are not facing the issue anymore right?
Jessica
JessicaOP4mo ago
tried this but it didnt' work we got it to be bolder, but it's still not exactly right so we are still having slight issues with this

Did you find this page helpful?