? ? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
9 Jan 2020

Follow-up on #27416

Summary of Changes

Take off from _toolbar.scss .js-stools-container-selector which interfere with searchtools.css
Correct margins in mobile view as the situation is different when we have .js-stools-container-selector (1 field) or .js-stools-container-selector-first (2 fields).

Testing Instructions

Install multiple languages including Persian (fa-IR)
Display in Mobile view the Installed language manager and also the Menu Items manager.
These contains fields separated from the main searchtools (site/admin for Installed languages and site/admin // menu for menu items.

Patch and use npm

Before patch

LTR

Screen Shot 2020-01-09 at 09 51 41

RTL

Screen Shot 2020-01-09 at 09 55 06

After patch

LTR

Screen Shot 2020-01-09 at 09 12 14

RTL

Screen Shot 2020-01-09 at 09 11 26

@Fedik @brianteeman

avatar infograf768 infograf768 - open - 9 Jan 2020
avatar infograf768 infograf768 - change - 9 Jan 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Jan 2020
Category Administration Templates (admin)
avatar infograf768 infograf768 - change - 9 Jan 2020
The description was changed
avatar infograf768 infograf768 - edited - 9 Jan 2020
avatar brianteeman
brianteeman - comment - 9 Jan 2020

quickcheck - looks great
will test properly later today

avatar brianteeman
brianteeman - comment - 9 Jan 2020

It works but it needs cleaning up to prevent repetition

avatar infograf768 infograf768 - change - 9 Jan 2020
Labels Added: ?
avatar infograf768
infograf768 - comment - 9 Jan 2020

@ciar4n

Alas I had already merged 8b25305

Therefore your proposals were hard to find out.
Anyway I modified with most of your suggestions.
Except some that kill the alignment in LTR when we have 2 fields (menu items manager) for the second field. I had there to keep repeating margin-right: 0;

Please look again and test. If you propose some more changes, please test them before, following my instructions.

avatar ciar4n
ciar4n - comment - 9 Jan 2020

@infograf768

It looks like you got them all.

On a side note, there is a couple of ways of improving this...

  1. mobile first - only apply the margins to desktops media-breakpoint-up(sm) rather than applying margins to all and then taking it away on small screens.

  2. Create a unique class for all toolbar fields and only define changes once.

avatar infograf768
infograf768 - comment - 9 Jan 2020

@ciar4n
Not sure at all what you mean as xs may need different margins than sm

We have 3 solutions:

  1. Keep this, test it OK and merge. Then make a new PR.
  2. Kill this PR and someone makes a new PR
  3. Propose a PR to my branch.
avatar ciar4n
ciar4n - comment - 9 Jan 2020

Not sure at all what you mean as xs may need different margins than sm

On a single column layout there is no reason why they should. The frontend template CSS is mobile first, which is why I suggested it here.

avatar infograf768
infograf768 - comment - 9 Jan 2020

Then please make patch.

avatar ciar4n ciar4n - test_item - 10 Jan 2020 - Tested successfully
avatar ciar4n
ciar4n - comment - 10 Jan 2020

I have tested this item successfully on 118dc6f

This works. Suggestions can be applied template wide in a separate pr (if required).


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

avatar infograf768
infograf768 - comment - 10 Jan 2020

@ciar4n
thanks for testing
BTW, I can demonstrate easily why we will have different margin-right when we are in LTR and 2 fields are concerned. xs needs margin-right: .5rem while sm needs margin-right: 0;
Can send you an animated gif if you desire.

@brianteeman
Please mark your test so that we merge this.

avatar Fedik Fedik - test_item - 10 Jan 2020 - Tested successfully
avatar Fedik
Fedik - comment - 10 Jan 2020

I have tested this item successfully on 118dc6f


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

avatar Quy Quy - change - 10 Jan 2020
Status Pending Ready to Commit
avatar Quy
Quy - comment - 10 Jan 2020

RTC


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

avatar infograf768 infograf768 - change - 10 Jan 2020
Labels Added: ?
avatar HLeithner HLeithner - change - 10 Jan 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-01-10 20:25:01
Closed_By HLeithner
avatar HLeithner HLeithner - close - 10 Jan 2020
avatar HLeithner HLeithner - merge - 10 Jan 2020
avatar HLeithner
HLeithner - comment - 10 Jan 2020

Thanks

Add a Comment

Login with GitHub to post a comment