Bugzilla – Attachment 112835 Details for
Bug 26886
OPAC suggestions: possible duplicate message should stand out more
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26886: Correct style of alert-error class in the OPAC
Bug-26886-Correct-style-of-alert-error-class-in-th.patch (text/plain), 1.47 KB, created by
Owen Leonard
on 2020-11-02 13:54:53 UTC
(
hide
)
Description:
Bug 26886: Correct style of alert-error class in the OPAC
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2020-11-02 13:54:53 UTC
Size:
1.47 KB
patch
obsolete
>From fd8b6970c2ed61b52086f73326ed3694c10f3d4c Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 2 Nov 2020 13:43:27 +0000 >Subject: [PATCH] Bug 26886: Correct style of alert-error class in the OPAC > >This patch makes a minor change to the OPAC SCSS so that instances of >"alert-error" classes are styled the same as messages with the Bootstrap >4 "alert-warning" class. This change is simpler than making multiple >changes to scripts and templates. > >To test, apply the patch and try to view a single news item in the OPAC >which doesn't exist: > >/cgi-bin/koha/opac-main.pl?news_id=XXX > >- You should see a warning message with a pale yellow background, "This > news item does not exist." >- Submit a suggestion, and then submit another suggestion with the > same title. > - You should see a warning message, "The suggestion has not been > added. A suggestion with this title already exists." >--- > koha-tmpl/opac-tmpl/bootstrap/css/src/_common.scss | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/_common.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/_common.scss >index 5fdaaea52d..3df3488625 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/css/src/_common.scss >+++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/_common.scss >@@ -187,11 +187,16 @@ h1 { > padding: 1rem 0; > } > >+ > .alert { > &.alert-info, > &.alert-warning { > color: #000; > } >+ >+ &.alert-error { >+ @extend .alert-warning >+ } > } > > .btn-primary { >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26886
:
112835
|
112911
|
112955