Skip to content

Commit 129666f

Browse files
committed
Custom contacts button layout
1 parent 151b86b commit 129666f

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

classes/form/custom_contact_form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected function definition() {
101101

102102
// Save.
103103
$options = [
104-
'customclassoverride' => 'btn btn-primary mr-2',
104+
'customclassoverride' => 'btn btn-primary',
105105
];
106106
$mform->addElement('submit', 'submitbutton', get_string('save'), [], null, $options);
107107

styles.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,14 @@ body.format-ucl {
236236
width: 100%;
237237
max-width: 100%;
238238
}
239+
/* No label elements - e.g. buttons. */
240+
.femptylabel {
241+
width: auto;
242+
}
243+
/* SHAME - remove padding on submit button. */
244+
#fitem_id_submitbutton {
245+
padding-right: 0;
246+
}
239247

240248
.form-label-addon,
241249
.fdescription.required {

0 commit comments

Comments
 (0)