Onasanya was appointed as a Labour whip and as a parliamentary private secretary to Shadow Defence Secretary Nia Griffith. She attracted some notice when she quoted lyrics from "Man's Not Hot", a viral song, during a budget debate in November 2017. She voted remain in the United Kingdom European Union membership referendum and subsequently voiced support for a second vote on Brexit, either by means of a second referendum or a general election.