Conflicting Files ? Pending

User tests: Successful: Unsuccessful:

avatar Denitz
Denitz
17 Nov 2020

Pull Request for Issue #31386 .

Summary of Changes

Force custom .btn styles for modal footer only.

Testing Instructions

Try to use own buttons and button groups in the modal body with native btn, btn-success, btn-primary, btn-secondary classes.

Actual result BEFORE applying this Pull Request

See that buttons are white and not the same as in the usual non-modal body.

Expected result AFTER applying this Pull Request

Buttons are valid inside the modal body, only buttons inside the modal footer are affected.

Documentation Changes Required

No.

avatar Denitz Denitz - open - 17 Nov 2020
avatar Denitz Denitz - change - 17 Nov 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Nov 2020
Category Administration Templates (admin) NPM Change
avatar infograf768
infograf768 - comment - 17 Nov 2020

Try to use own buttons and button groups in the modal body.

Please be more specific. What should be done to test this using default core.

avatar Denitz Denitz - change - 17 Nov 2020
The description was changed
avatar Denitz Denitz - edited - 17 Nov 2020
avatar Denitz
Denitz - comment - 17 Nov 2020

@infograf768 I updated the description.

Try to use any native button classes like btn, btn-success, btn-primary, btn-secondary.

avatar ceford ceford - test_item - 18 Nov 2020 - Tested successfully
avatar ceford
ceford - comment - 18 Nov 2020

I have tested this item successfully on 61401cf

Needs npm run build:css


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31420.

avatar ceford
ceford - comment - 18 Nov 2020

I put this in banners/default_batch_footer.php:

<div class="btn-group" role="group" aria-label="Basic example">
<button type="button" class="btn btn-info">Left</button>
<button type="button" class="btn btn-warning">Middle</button>
<button type="button" class="btn btn-danger">Right</button>
</div>

Before:

image

After:

screen shot 2020-11-18 at 05 13 27


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31420.

avatar gostn gostn - test_item - 18 Nov 2020 - Tested successfully
avatar gostn
gostn - comment - 18 Nov 2020

I have tested this item successfully on 61401cf


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31420.

avatar infograf768
infograf768 - comment - 18 Nov 2020

@Denitz
This does not change. Is this what you expect?
btn

avatar Denitz
Denitz - comment - 18 Nov 2020

@infograf768 @ceford
Please test the buttons and button groups in modal body as well.

My patch keeps the modal footer as it is but allows the original Boostrap buttons and button groups inside modal body.

avatar ceford
ceford - comment - 18 Nov 2020

I tested again with the buttons in a modal body:

screen shot 2020-11-18 at 15 23 56

Personal opinion: I am not keen on those dark solid colours for Cancel and Process. Outline buttons might be better.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31420.

avatar infograf768
infograf768 - comment - 18 Nov 2020

@ceford
How do you get these colors for the Cancel/Process buttons? I only get them on hover.

avatar ceford
ceford - comment - 18 Nov 2020

Just now I applied the pr, issued command npm run build:css and the modal footer buttons appeared in solid colours as illustrated in my previous screens. I also tried it with npm ci - same result. The style is coming from line 2749 of template.css. With the patch removed the styling comes from line 12422 of template.css. I don't think I have made any other changes.

avatar ceford
ceford - comment - 18 Nov 2020

I think the > may be the problem - it selects a child rather than a descendant. Although I am no expert on complex selectors!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31420.

avatar Denitz Denitz - change - 19 Nov 2020
Labels Added: NPM Resource Changed ?
avatar Denitz
Denitz - comment - 19 Nov 2020

@ceford @infograf768 Argh yes! I changed .modal > .modal-footer .btn to .modal .modal-footer .btn

Before the patch, all buttons inside modal are styled:

.modal .btn {...}

After the patch, the existing custom style (I agree that it's awful and useless) is applied to buttons in the modal footer only:

.modal .modal-footer .btn

If any boss can confirm, we can really remove this ugly style because it doesn't allow to have colored buttons in the modal footer.

avatar ceford ceford - test_item - 19 Nov 2020 - Tested successfully
avatar ceford
ceford - comment - 19 Nov 2020

I have tested this item successfully on f90dd0b

Latest patch shows coloured buttons in body and white buttons in footer. Good! Screen shot:

image

I assume the failing MySQL test is a temporary test glitch!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31420.
avatar ceford
ceford - comment - 19 Nov 2020

Bah! Belay that last successful test! The Left and Middle buttons in the footer have no hover behaviour. They are btn-info and btn-warning. So we need to check the other bootstrap standard buttons too.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31420.

avatar ceford ceford - test_item - 19 Nov 2020 - Not tested
avatar ceford
ceford - comment - 19 Nov 2020

I have not tested this item.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31420.

avatar brianteeman
brianteeman - comment - 2 Apr 2021

@Denitz are you able to look at the errors reported above

avatar Denitz
Denitz - comment - 5 Apr 2021

@brianteeman I updated the code, just removed the custom button style from modals.

avatar Quy
Quy - comment - 6 Apr 2021

Buttons are no longer outlined.

avatar Denitz
Denitz - comment - 7 Apr 2021

Sure, why do we need outlined buttons here? We need to be able to control the buttons ourselves via CSS classes.

avatar brianteeman
brianteeman - comment - 7 Apr 2021
  1. Thats the design
  2. What is stopping you?
avatar Denitz
Denitz - comment - 8 Apr 2021

The issue is that we can't style modal footer buttons via normal btn-xxx classes, Atum forces same white style for all buttons.

I don't think that it's a idea from developer point of view and I dislike the idea of adding own custom CSS.

From user point of view having all buttons in the same style hardens the usability as well, there is no possibility to distinguish between "positive" and "negative" actions via usual green/primary and red/secondary/light colors.

avatar Quy
Quy - comment - 8 Apr 2021

This PR is fine. However, to keep the design, then change the class to .btn-outline-* for buttons in the modal.

avatar Denitz
Denitz - comment - 13 Apr 2021

@Quy Do you mean that we should keep the custom style for .btn-outline-* and use this class for all buttons in current modals?

avatar Denitz Denitz - change - 30 Aug 2021
Labels Added: ?
Removed: ?
avatar Denitz Denitz - change - 22 Feb 2022
Title
[4.0] Atum breaks all buttons and button groups in modal
[4.1] Atum breaks all buttons and button groups in modal
avatar Denitz Denitz - edited - 22 Feb 2022
avatar Denitz Denitz - change - 22 Feb 2022
Labels Added: Conflicting Files ?
Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 22 Feb 2022
Category Administration Templates (admin) NPM Change Repository Administration com_admin SQL Postgresql com_associations com_banners
avatar Denitz Denitz - close - 22 Feb 2022
avatar Denitz Denitz - close - 22 Feb 2022
avatar Denitz Denitz - change - 22 Feb 2022
Labels Removed: NPM Resource Changed
avatar Denitz Denitz - change - 22 Feb 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-02-22 06:22:35
Closed_By Denitz

Add a Comment

Login with GitHub to post a comment