NanoUI fixes

- Fixes #6013
- Reverts temporary fix that removed the problem formatting (#6343)
- Renames red and yellow button classes to be more self explanatory
Yea, will have to look into that. It used to inherit before the last NanoUI update, which is why it broke after the update.