Consumer units boxed in wooden cupboard or mounted under wooden stairs are seen as a fire hazard as these materials are highly combustible. According to building regulations your consumer unit should be enclosed in a cabinet or enclosure constructed of non-combustible material such as steel.