@NicCarBel
Actually now you mention it I think that may have been rewritten to exclude the YC for non footballing challenges. I remember this came up at some time this year and we spoke for ages about it.
The logic previously (a couple of years ago) was if you committed a foul but the advantage was played you stepped back a sanction, so no YC, UNLESS it was a non footballing challenge. (Like holding or a deliberate trip with no intention to play the ball.)
I think, though I could be wrong they've taken that out.
I'll hunt around in the Q and A part of the IFAB laws.