Often times a light switch or dimmer can become hot from overloading from too much wattage. Dimmers are more likely to become hot from overloading due to the fact that they are designed to dissipate heat while being operated. If a dimmer switch becomes too hot it will usually fail. A switch becoming hot is usually a sign of a loose connection but they too can feel hot if too much power is on the circuit.