Bootstrap OPAC buttons use inconsistent styles

Bug #1981774 reported by Jeff Davis
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
3.9
Fix Released
Medium
Unassigned

Bug Description

The Bootstrap OPAC introduced a number of new CSS classes for buttons: btn-confirm, btn-deny, btn-remove, btn-opac, and btn-action. However, some buttons still use the opac-button and results_header_btns CSS classes, which are holdovers from the TPAC. These older buttons use different color variables than the Bootstrap buttons. As a result, you can end up with inconsistent button styles depending on how you've set up your OPAC colors.

I think we should get rid of the opac-button and results_header_btns classes and use the new Bootstrap button styles everywhere. There are around 15 buttons in the Bootstrap OPAC that would need to be modified.

tags: added: bootstrap
Changed in evergreen:
importance: Undecided → Medium
status: New → Confirmed
Changed in evergreen:
assignee: nobody → Jeff Davis (jdavis-sitka)
Revision history for this message
Jeff Davis (jdavis-sitka) wrote :

There are also some standard Bootstrap button classes that we're using in the OPAC without defining any associated CSS rules: btn-secondary, btn-danger, btn-link, btn-success. For these buttons, I assume we're falling back to Bootstrap's defaults, which may or may not be desirable.

And there are a few non-standard button classes that also don't have any CSS rules: btn- (presumably a typo), btn-group, btn-group-vertical. These should probably be cleaned up.

Revision history for this message
Jeff Davis (jdavis-sitka) wrote :

Working branch user/jeffdavis/rt92002-lp1981774-bootstrap-buttons has a fix:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/jeffdavis/lp1981774-bootstrap-buttons

There are two commits. The first commit cleans up all uses of the opac-button class in the Bootstrap OPAC. The second commit fixes a typo involving a button class in the curbside pickup UI.

I didn't do anything about the results_header_btns class because I couldn't get the relevant button to display (perhaps this is dead code?). I also didn't do anything about the classes that lack CSS rules in Evergreen.

tags: added: pullrequest
Revision history for this message
Garry Collum (gcollum) wrote :

A signed-off branch is at https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/gcollum/lp1981774-bootstrap-buttons-signoff

Just to note - It looks like carts.tt2 is not used in the bootstrap opac.

tags: added: signedoff
Changed in evergreen:
milestone: none → 3.9.1
Changed in evergreen:
milestone: 3.9.1 → 3.9.2
Michele Morgan (mmorgan)
Changed in evergreen:
milestone: 3.9.2 → 3.10.1
Changed in evergreen:
milestone: 3.10.1 → 3.10.2
Galen Charlton (gmc)
Changed in evergreen:
assignee: Jeff Davis (jdavis-sitka) → Galen Charlton (gmc)
Revision history for this message
Galen Charlton (gmc) wrote :

Pushed down to rel_3_9, along with a follow-up to update a straggler that slipped after the initial pull request. Thanks, Jeff and Garry!

Changed in evergreen:
status: Confirmed → Fix Committed
Revision history for this message
Galen Charlton (gmc) wrote :

I've opened bug 2013681 to suggest removal of the opac-button class.

Galen Charlton (gmc)
Changed in evergreen:
assignee: Galen Charlton (gmc) → nobody
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.