It's usually inside the frame or cabinet to mostly protect it, but not sealed off entirely.
https://www.google.com/imgres?imgurl=https://m.media-amazon.com/images/I/6173jGYQSrL._AC_UF894,1000_QL80_.jpg&tbnid=fpgISrpNHPfRaM&vet=1&imgrefurl=https://www.amazon.com/Weber-Igniter-Switch-Genesis-Spirit/dp/B08FXTDKQ6&docid=T35S-kngBYhQ7M&w=894&h=873&source=sh/x/im/1