MDL-37645 Generalise style for moodle-core-dialogues