Hello I’m trying to create a list item with an icon-left, some text, and an icon-right. I’d like the icons to be clickable and href to different destinations. However when I remove the outer href and try to apply an href to each of the icons it breaks. It’s like the icons forget to behave like icons in their respective places defined by the container’s class.
It’s because the class-selectors that moves the icons left and right uses nth-child. They’re looking for the first/last icon-class, but since you don’t have any icons that are direct children of the .item, the classes isn’t applied.
(Hmmmm, do you understand? I’m not sure I understand what I just wrote…)
Maybe you could copy the styling from the icons when its working and then add it to the a-tag, or just move the icon-class onto the a-tag