In the Name of Allah, the Most Gracious, the Most Merciful.
As-Salāmu ‘Alaykum Wa-Rahmatullāhi Wa-Barakātuh.
It is Makrooh-e-Tahreemi to perform Salaah in such attire, as leggings expose the shape of the body. However, if performed, it will still be valid [but the person will be sinful]. A woman should wear a long and loose outer dress when performing Salaah.[1]
And Allah Ta’ala Knows Best.
Azhar Mownah
Student Darul Iftaa
Mauritius
Checked and Approved by,
Mufti Muhammad Zakariyya Desai.
https://iftaa.co.za/8482/women-performing-salaah-while-wearing-leggings/