From cacded8474967744e0eee5e9a0197c51457247f3 Mon Sep 17 00:00:00 2001 From: Evonne Date: Tue, 8 Oct 2019 11:59:43 +1300 Subject: [PATCH] Bug 1835329 Alert message icons Taken out spans within alert and put in icons in alert:before, added variation for site-messages so it can be shorter and hang with page breakpoints. Also added icons for error messages under form inputs. behatnotneeded Change-Id: Ia31af160808ecc2943bb16ba68f04e8a98c0e055 --- .../openbadgedisplayer/js/configform.js | 5 ++- htdocs/blocktype/openbadgedisplayer/lib.php | 2 +- .../sass/layout/card/_card-header.scss | 9 ++--- htdocs/theme/raw/sass/form/_alert.scss | 30 ++++++++++++++++ htdocs/theme/raw/sass/form/_form-group.scss | 8 +++++ .../theme/raw/sass/form/_site-messages.scss | 34 ++++++++++++++++++- htdocs/theme/raw/templates/header.tpl | 16 ++++----- htdocs/theme/raw/templates/styleguide.tpl | 12 +++---- 8 files changed, 89 insertions(+), 27 deletions(-) diff --git a/htdocs/blocktype/openbadgedisplayer/js/configform.js b/htdocs/blocktype/openbadgedisplayer/js/configform.js index 91f81012ea..c6c52ecb2f 100644 --- a/htdocs/blocktype/openbadgedisplayer/js/configform.js +++ b/htdocs/blocktype/openbadgedisplayer/js/configform.js @@ -43,16 +43,15 @@ if ((badgegroups_hosts instanceof Array && badgegroups_hosts.length >= 1) count++; /* Fetching the badge info via ajax and render the pieform checkbox element */ sendjsonrequest(config['wwwroot'] + '/blocktype/openbadgedisplayer/badgegroupnames.json.php', params, 'POST', function(data) { - var icon = jQuery(''); var container = jQuery(' {if $USERMASQUERADING || !$PRODUCTIONMODE || $SITECLOSED || $SITETOP} -
+
{/if} {if $USERMASQUERADING} {/if} {if !$PRODUCTIONMODE} {/if} {if $SITEOUTOFSYNC} {/if} {if $SITECLOSED} {/if} diff --git a/htdocs/theme/raw/templates/styleguide.tpl b/htdocs/theme/raw/templates/styleguide.tpl index ef50d90dae..d419235b58 100644 --- a/htdocs/theme/raw/templates/styleguide.tpl +++ b/htdocs/theme/raw/templates/styleguide.tpl @@ -939,8 +939,7 @@ section .card-quarter:nth-child(4n) .page-access .dropdown-menu { This is used to indicate that you should make the recommended change. ```
-

Warning

- This is a warning alert. + This is a warning alert.
``` @@ -950,8 +949,7 @@ This is used to indicate that you should make the recommended change. Used to show that there is an error, which must be fixed before you can continue. ```
-

Danger

- This is a danger alert. + This is a danger alert.
``` @@ -961,8 +959,7 @@ Used to show that there is an error, which must be fixed before you can continue Used to show that an action was successful. ```
-

Success

- This is a success alert. + This is a success alert.
``` @@ -972,8 +969,7 @@ Used to show that an action was successful. Used to show information about Mahara. Usually, this is only shown to administrators. ```
-

Info

- This is a info alert. + This is a info alert.
``` -- GitLab