Bugzilla – Attachment 147577 Details for
Bug 33095
Text is white on white when hovering over pay/writeoff buttons in paycollect
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33095: Text is white on white when hovering over pay/writeoff buttons in paycollect
Bug-33095-Text-is-white-on-white-when-hovering-ove.patch (text/plain), 4.95 KB, created by
Owen Leonard
on 2023-03-01 19:15:30 UTC
(
hide
)
Description:
Bug 33095: Text is white on white when hovering over pay/writeoff buttons in paycollect
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2023-03-01 19:15:30 UTC
Size:
4.95 KB
patch
obsolete
>From 05e60fd3fee501d5f023aa35a0b58c0e0b35d798 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 1 Mar 2023 19:03:33 +0000 >Subject: [PATCH] Bug 33095: Text is white on white when hovering over > pay/writeoff buttons in paycollect > >The "Make a payment" page uses unusual navigation for the switch between >the "Pay" and "Write off" views: Bootstrap nav pills. The style on these >is a little muddled because a mix of Bootstrap and custom CSS is at >work. > >This patch adds some CSS specific to nav pills and removes some >ambiguous CSS. Two links in the template get a dummy "#" href attribute >to make them work better with default styles. > >To test, apply the patch and rebuild the staff interface CSS. > > - Locate a patron who has outstanding charges (lost item charge, > account renewal fee, overdue fine, etc.). > - From the patron checkout or detail page, click the "Accounting" tab > in the left hand sidebar. > - Click the "Pay" button on one of the oustanding charges. > - On the "Pay an individual fine" page, confirm that there is a button > and a link at the top of tab panel: "Pay" and "Write off." The > "Pay" button should green with white text, the "Write off" button > should be white with green text. > - Click the "Write off" button and the styles of the links should be > reversed. > - Confirm that the CSS changes do not affect the appearance of the main > navigation bar at the top of the page. >--- > .../intranet-tmpl/prog/css/src/_header.scss | 7 +++-- > .../prog/css/src/staff-global.scss | 27 ++++++++++++++----- > .../prog/en/modules/members/paycollect.tt | 4 +-- > 3 files changed, 28 insertions(+), 10 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/_header.scss b/koha-tmpl/intranet-tmpl/prog/css/src/_header.scss >index a11a5a64a9b..ddd73e375e7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/_header.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/_header.scss >@@ -8,8 +8,11 @@ a.navbar-toggle { > color: #FFFFFF; > text-shadow: unset; > >- &:hover, &:active { >- border-bottom: 1px #FFFFFF; >+ &:hover, >+ &:active, >+ &:focus { >+ background-color: transparent; >+ text-decoration: underline 2px; > } > } > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >index 97af88deca9..bf477d1f1ec 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >@@ -2962,14 +2962,29 @@ nav { > border: 0; > } > >-.nav > li > a:hover, >-.nav > li > a:focus { >- background-color: transparent; >- padding: .4em 15px; >- color: #fff; >- text-decoration: underline 2px; >+.nav-pills { >+ li { >+ a { >+ background-color: transparent; >+ } >+ &.active { >+ a { >+ &:link, >+ &:visited { >+ background-color: $background-color-primary; >+ } >+ >+ &:active, >+ &:hover, >+ &:focus { >+ background-color: $background-color-secondary; >+ } >+ } >+ } >+ } > } > >+ > .pagination { > margin: .5em 0; > } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt >index c5bc2ed26b6..250f8d8f63c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt >@@ -131,7 +131,7 @@ > [% ELSE %] > > <ul class="nav nav-pills"> >- <li role="presentation" class="active"><a>Pay</a></li> >+ <li role="presentation" class="active"><a href="#">Pay</a></li> > <li role="presentation"><a href="/cgi-bin/koha/members/paycollect.pl?writeoff_individual=1&borrowernumber=[% patron.borrowernumber | uri %]&debit_type_code=[% debit_type_code | uri %]&amount=[% amount | uri %]&amountoutstanding=[% amountoutstanding | uri %]&description=[% individual_description | uri %]&itemnumber=[% itemnumber | uri %]&accountlines_id=[% accountlines_id | uri %]&payment_note=[% payment_note | uri %]">Write off</a></li> > </ul> > >@@ -228,7 +228,7 @@ > [% ELSIF ( writeoff_individual ) %] > <ul class="nav nav-pills"> > <li role="presentation"><a href="/cgi-bin/koha/members/paycollect.pl?pay_individual=1&borrowernumber=[% patron.borrowernumber | uri %]&debit_type_code=[% debit_type_code | uri %]&amount=[% amount | uri %]&amountoutstanding=[% amountoutstanding | uri %]&description=[% individual_description | uri %]&itemnumber=[% itemnumber | uri %]&accountlines_id=[% accountlines_id | uri %]&payment_note=[% payment_note | uri %]">Pay</a></li> >- <li role="presentation" class="active"><a>Write off</a></li> >+ <li role="presentation" class="active"><a href="#">Write off</a></li> > </ul> > > <form name="woindivfine" id="woindivfine" action="/cgi-bin/koha/members/pay.pl" method="post" > >-- >2.30.2
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 33095
:
147577
|
147579
|
147748