diff --git a/admin/tool/componentlibrary/content/moodle/components/buttons.md b/admin/tool/componentlibrary/content/moodle/components/buttons.md index 9a697eef0a5..b20a9f7aaca 100644 --- a/admin/tool/componentlibrary/content/moodle/components/buttons.md +++ b/admin/tool/componentlibrary/content/moodle/components/buttons.md @@ -58,6 +58,16 @@ Use a danger button when the primary action is a potentially dangerous action, l Outline buttons are used for buttons that controll part of the user interface, like filters on a table or the display type on the user dashboard. Outline buttons look more subtle than secondary buttons and do not distract the user from the main user interface too much. +### Subtle buttons + +{{< example >}} + + + +{{< /example >}} + +The subtle class is designed to create buttons that offer a balance between the visual prominence of standard buttons and the minimalism of outline buttons. This class aims to provide a softer, more understated appearance compared to regular buttons while still maintaining more visual presence than outline buttons. + ## Adding buttons to a page ### Using the single_select renderer diff --git a/course/format/classes/output/local/content/cm/completion.php b/course/format/classes/output/local/content/cm/completion.php index 32252e865d3..e8874c25e94 100644 --- a/course/format/classes/output/local/content/cm/completion.php +++ b/course/format/classes/output/local/content/cm/completion.php @@ -122,13 +122,12 @@ class completion implements named_templatable, renderable { $dialogcontent = $output->render_from_template('core_courseformat/local/content/cm/completion_dialog', $completioninfo); $buttoncontent = get_string('completionmenuitem', 'completion'); - $buttonclass = ''; + $buttonclass = 'btn-subtle-body'; if ($completioninfo->istrackeduser) { - $buttonclass = 'btn-outline-secondary'; $buttoncontent = get_string('todo', 'completion'); if ($completioninfo->overallcomplete) { $buttoncontent = $output->pix_icon('i/checked', '') . " " . get_string('completion_manual:done', 'core_course'); - $buttonclass = 'btn-success'; + $buttonclass = 'btn-subtle-success'; } } diff --git a/course/templates/completion_manual.mustache b/course/templates/completion_manual.mustache index 8cfe1b387f4..b2d1dddedbf 100644 --- a/course/templates/completion_manual.mustache +++ b/course/templates/completion_manual.mustache @@ -30,7 +30,7 @@ {{#istrackeduser}} {{#overallcomplete}}