I've not flown in leggings; indeed, I've only once flown in jeans. Yet I certainly understand others who choose whatever clothing is most comfortable and practical for them.

As it happens, one airline has (and enforces, perhaps sporadically) an opinion on this.

https://mobile.nytimes.com/201.....s.amp.html