Currently, when typing in the class input field in the block inspector, the field very helpfully replaces any space typed with a “-”, which is very intuitive as most people are used to typing spaces between words.
I noticed that this particular feature has not yet been added to the Classes dialog and it will be really nice to have it in there also.