From fd936fc10a7f6eb9b983635243711cb6cd85ccc7 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 2 Dec 2021 01:59:06 +0000 Subject: [PATCH] Bug 29604: Dont add psuedo content to highlighted terms MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit To test: 1. Do a search for something where the search terms will be in the 505 note. 2. Visit the OPAC detail page of the record. 3. The first occurance of the term highlighting will include the CSS pseduo element "→ "; 4. Apply patch 5. Do the stuff to regenerate the CSS (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface) 6. Do 1 & 2 again. 7. No weird psuedo element in the term highlighting Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers Signed-off-by: Kyle M Hall (cherry picked from commit e66f8149e8383787ad590c60bca279ebfbcef2da) Signed-off-by: Andrew Fuerste-Henry --- koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss index 684dd9ed73..888928b3db 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss +++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss @@ -2277,7 +2277,7 @@ nav { margin-left: 2em; position: relative; - :first-child::before { + :first-child:not(.term)::before { content: "→ "; } } -- 2.39.5