Remember that Bohr's theory on atomic structure was 1) only a model and 2) cannot truly violate anything, as it was only a model.
However, the fundamental flaw in Bohr's model is the assumption that an electron of a certain energy level, or "shell", can only occupy that energy level (unless it jumps to another level, requiring energy). This essentially claims to know the relative position of that electron, while Heisenberg's uncertainty principle states that this is impossible. Rather, the electron cloud model is more commonly used today, which gives regions of probability in which it is most likely to find an electron of a given energy level.
In Bohr's atomic model, electrons are found in specific, quantized orbits or energy levels around the nucleus of an atom. These orbits are circular paths where electrons can exist without radiating energy. The distance of each orbit from the nucleus corresponds to a specific energy level, with higher energy levels being farther from the nucleus. Electrons can move between these orbits by absorbing or emitting energy, typically in the form of photons.
In a flame test, different elements emit characteristic colors when heated due to the movement of electrons within their atoms. This movement of electrons aligns with Bohr's model of the hydrogen atom, which describes electrons moving between energy levels and emitting light at specific wavelengths. The flame test provides experimental evidence supporting Bohr's model by demonstrating the quantized nature of electron energy levels in atoms.
When an electron is excited by some form of energy it enters into a higher orbital. In order for there to be balance it almost immediately returns to the previous orbital. When such happens energy is released in the form of light.