When were these voted on? As far as I can tell they are both still proposals from the Commission.
Don't know when exactly but they are due to come in to force in 2020 and the UK voted for them.
From the BBC :
"The Work Life Balance Directive, due to come into force after 2020, will guarantee two months of paid leave for parents with children under eight and five days paid leave a year for carers, while all working parents of children aged up to eight will be able to request flexible working.
The Transparent and Predictable Working Conditions Directive will set employment terms for workers from their first day and give more certainty to staff doing shifts.
The UK voted for the measures at EU meetings but ministers say it will now be up to Parliament to decide whether to implement them."