Bug 26886: Correct style of alert-error class in the OPAC
commit48880284867a96d8767e7d15f6bfe1a035b2ee6e
authorOwen Leonard <oleonard@myacpl.org>
Mon, 2 Nov 2020 13:43:27 +0000 (2 13:43 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 4 Nov 2020 13:49:14 +0000 (4 14:49 +0100)
tree680d1c3118af2593ed2f7a894c769626be15b57c
parentea7e83b2712c48a0c9a157b2fb36eb782b26f34b
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."

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/opac-tmpl/bootstrap/css/src/_common.scss