For desktop, I don't see in the main.js file how the --selected suffix gets added to the cd-side__item class. I'd assume this would be by checking the current window.location and finding it in the side menu li items and if found, applying it?
I searched the main.js file for --selected but only see where it is being read in the expandSiderbarItem() function but not how it is being set.
Is this supposed to work out of the box and I'm missing something, or are we supposed to put in the logic to handle this?
For desktop, I don't see in the main.js file how the
--selected
suffix gets added to thecd-side__item
class. I'd assume this would be by checking the currentwindow.location
and finding it in the side menuli
items and if found, applying it?I searched the main.js file for
--selected
but only see where it is being read in theexpandSiderbarItem()
function but not how it is being set.Is this supposed to work out of the box and I'm missing something, or are we supposed to put in the logic to handle this?