The answer is that there is no legal maximum. However, TUC guidelines give 30 degrees celcius as the maximum recommended temperature in the workplace. This is pretty hot, and most managers in a unionised establishment will not push their luck beyond this. However, there is no automatic right to leave work.