I would like to change the background colour of the side menu items after I've clicked them. The screenshot below shows the colour I would like to change.
Is it pseudo element or class that I need to apply CSS?
Solved! Go to Solution.
document.querySelector('.simple-label').style.background = 'rgba(255, 255, 255, 1)';
You can call the function from your label's click event. The label needs to have the class 'simple-label' in that case.
I'm not sure if I understand you right...
But you should be able to see the tree of the added view when you click on the view first.
Can you add screenshot of you studio editor or even better the project? Then we can figure it out for sure.
Vuforia automatically creates the side menu when creating a new view. I've attached a screenshot of my studio editor.
You can recreate this by creating a new experience and adding a new view. When you preview the experience there will be a side menu. When you click each item on the menu the background colour will briefly change colour before swapping to the view you clicked. That's the colour I would like to change.
I tried adding a class to the view itself, and adding the pseudo class:
This didn't work either.