Selected row background color not changing fully when using subview

Hello, I've been struggling with this for a while now and I can't find a solution. When I hover over a row of a table with subviews, the color changes correctly. But when I click it, the background color of that part of the row doesn't change. Is this intended, a bug, am I missing some basic css...? Anyways, I'd really like to know how to change it to the same color as the selected row color.