In order to accomplish the click away feature, I had to disable the toggle feature of the button by changing isOpen to static conditions at multiple points throughout the file
SettingsControl
SettingsControl is structured a bit differently from the leaderboard, so I had to make this a const as opposed to a method
Aside from that one small difference the same principle is applied with the creation and removal of a div element as well as the removal of the toggle feature
Leaderboard
backgroundDim
method under the existing leaderboard objectcreate
andremove
index.md
isOpen
to static conditions at multiple points throughout the fileSettingsControl
Example picture of what the working dim looks like