The battle over what men and women should or should not be allowed to wear at work has been raging for decades. Just last week, a judge ruled that Boots, Britain’s largest pharmacy chain, had discriminated against an employee at its Preston warehouse in northern England by reprimanding him for wearing a pair of black cotton three-quarter-length trousers to work on a hot summer day in 2018.

The case was ultimately unsuccessful (as it was submitted too late), but the warehouse worker’s sweaty-legged plight recalls a multitude of other workplace-based sartorial horror stories which have occurred over the years.

There has long been a fraught relationship between men in short trousers and the offices they occupy — and the higher up the food chain one goes, the more difficult it is to get away with. The prime minister would never live it down if he wore shorts to the Houses of Parliament (though he’d probably quite like to) and you’d be unlikely to catch Andrew Bailey rocking around the Bank of England in primary-hued Prada bermudas.

The wider ramifications of last week’s ruling — along with the growing casualisation of workplace attire, which has been accelerated by Covid-19 — could, however, shift the dial on wearing shorts to the office. Summers, too, are getting hotter.

The good news is that it is possible to look elegant in cut-offs at work, so long as you pick the right pair. Many designers — from Thom Browne and Qasimi at the deeper end of the budgetary pool, to Zara and Mango at the shallower — have started producing beautifully tailored short suits designed to make their wearers look more like serious business people and less like latter-day members of B*Witched.

Personally speaking, I’ve only ever worn shorts to the office twice. Once last August, when the thermometer hit 32 degrees Celsius and the prospect of sitting in our sweltering fashion box for eight hours drove me to pull on a pair of slim cut navy shorts from Cos (the Swedish high-street brand cuts a good basic knee-skimmer). And once, when I was much younger working at Esquire magazine and I wore a pair of striped shorts as part of a co-ord. The then-editor compared me to an elongated Pee Wee Herman.

In my view, the key to getting the look right is in the accessories you team it with. A seersucker short suit in a minty hue would look excellent worn with a white grandad shirt and a pair of chestnut brown derbies, sockless; while a more classic Thom Browne-esque charcoal three-piece short suit would look best teamed with ribbed socks in a tonal hue, a pair of chunky black brogues and a spiffy shirt and tie.

But context matters. I work in media, where creativity in dress is encouraged. Psychologically, more formal workplaces, such as legal chambers and financial offices, may never be ready for the exposed male leg.

“From my perspective, the expectation of my lay and professional clients would be that I am formally and appropriately dressed. We are dealing with individuals often at the worst and most vulnerable stages in their lives and they expect a competent and professional package: from appearance to advice,” London-based barrister Matt Warmoth tells me. “Therefore, if there is to be any sartorial relaxation, I would consider the removal of a tie and possibly the jacket to be the natural progression rather than there being an industry acceptance of shorts instead of trousers.”

While financial groups such as JPMorgan and PwC have loosened their dress codes in recent years — ties are thankfully no longer mandatory — the prospect of a host of naked calves plonked within the close confines of a communal desk — hairs raised against the waft of the computer fan, inner thighs sweating from the toils of the commute — may just be a step too far for some employers.

“If you’re not in a client-facing role, you can wear whatever you want in the office,” a portfolio manager at a London-based investment fund writes over WhatsApp. “The question is — can you take the heat from your colleagues?”

Follow on Instagram to find out about our latest stories first

Listen to our podcast, Culture Call, where FT editors and special guests discuss life and art in the time of coronavirus. Subscribe on Apple, Spotify, or wherever you listen