novo-elements icon indicating copy to clipboard operation
novo-elements copied to clipboard

[ Question ] Detecting which theme is being used, 'Classic' or 'Modern' in Page Interaction

Open yendrrek opened this issue 2 years ago • 3 comments

Is there a way to access the object which contains 'themeName'? I would need it in my Page Interaction to detect whether the user is using the classic or the modern theme.

image

yendrrek avatar May 17 '22 10:05 yendrrek

When you console.log the API object you can see in globals:settings: defaultNovoThemeName: "modern-light" for both themes, the Classic and the Modern. It would be good to have defaultNovoThemeName: "classic" if the Classic theme were on.

yendrrek avatar May 17 '22 16:05 yendrrek

Hi @yendrrek , since PageInteractions are a feature of the Bullhorn ATS and no code is used from the component library, there is not much we can do here. I will escalate this to our product teams as a feature request. Can you give us a few more details in your use case here, are you injecting styles?

I will keep this ticket open temporarily, to notify you if this feature is getting added.

bvkimball avatar May 26 '22 17:05 bvkimball

Hi @bvkimball, yes, I'm injecting a style with a different colour into the banner / header on the Candidate record depending on the value in the 'Status' field. I made it work for the 'Modern' theme, but when using the 'Classic' theme it would not work properly. I eventually found a work around, but I thought it would be useful to be able to distinguish between the classic and the modern view. Thanks for your help.

yendrrek avatar May 27 '22 10:05 yendrrek