? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
20 Jul 2018

Since the change to use custom elements for toolbar buttons we are still left with some toolbar buttons that are not using custom elements eg the batch button

All buttons in the toolbar (custom elements and old style) have a margin-left of 0.75rem

Except for the first occurrence of the old style button which had a margin-left of 0. As that first occurrence may now no longer occur at the beginning of the row it results in two buttons without a margin between them. (see image)

This quick pr deletes that first occurrence rule so that we have the space again (see image)

This pr changes the class from first-of-type to first-child

Any comment about why the batch is not a custom element is beyond the scope of this pr

before

chrome_2018-07-20_18-08-56

after

chrome_2018-07-20_18-07-32

avatar brianteeman brianteeman - open - 20 Jul 2018
avatar brianteeman brianteeman - change - 20 Jul 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jul 2018
Category Administration Templates (admin)
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 20 Jul 2018 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Jul 2018

I have tested this item successfully on a3e559a


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

avatar Quy
Quy - comment - 20 Jul 2018

The side effect is extra left padding on the first button.

Before:
21202-before

After:
21202-after

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Jul 2018

@Quy true, haven't seen that.

avatar brianteeman
brianteeman - comment - 20 Jul 2018

:(

need to find a different css rule then

avatar ggppdk
ggppdk - comment - 20 Jul 2018

Replacing :first-of-type with :first-child
should work, as we want to target the first child of the toolbar
as browser support is since IE7

can we try the above ?

avatar brianteeman brianteeman - change - 20 Jul 2018
Labels Added: ?
avatar brianteeman
brianteeman - comment - 20 Jul 2018

Changed from removing the first of type to replacing it with first-child

avatar brianteeman brianteeman - change - 20 Jul 2018
Title
[4.0] Remove css rule
[4.0] Change css rule
avatar brianteeman brianteeman - edited - 20 Jul 2018
avatar brianteeman brianteeman - change - 20 Jul 2018
The description was changed
avatar brianteeman brianteeman - edited - 20 Jul 2018
avatar brianteeman
brianteeman - comment - 20 Jul 2018

Description updated

avatar ggppdk
ggppdk - comment - 21 Jul 2018

There is an extra problem that maybe is not directly related to this PR

RTL seem to load sames same CSS as LTR

we have (LTR):

.subhead .btn-toolbar > :first-of-type {
    margin-right: 0;
}
.subhead .btn-toolbar > * {
    margin-right: .75rem;
    margin-left: 0;
}

For RTL it should be:

.subhead .btn-toolbar > :first-of-type {
    margin-left: 0;
}
.subhead .btn-toolbar > * {
    margin-left: .75rem;
    margin-right: 0;
}

If it should not be done in this PR then please tell me
and i will mark a successful PR as i have tested already and it works

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 21 Jul 2018 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 21 Jul 2018

I have tested this item successfully on 85e2791

Test without RTL.


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

avatar infograf768
infograf768 - comment - 21 Jul 2018

This one has to be redone after this merge: #21206 and this comment
#21202 (comment)

avatar infograf768
infograf768 - comment - 21 Jul 2018

@ggppdk
For RTL one has also to edit the template-rtl.scss
with this

diff --git a/administrator/templates/atum/scss/template-rtl.scss b/administrator/templates/atum/scss/template-rtl.scss
index 3bb0cde..be2a28e 100644
--- a/administrator/templates/atum/scss/template-rtl.scss
+++ b/administrator/templates/atum/scss/template-rtl.scss
@@ -176,5 +176,5 @@
     margin-left: 0;
 
-    &:first-of-type {
+    &:first-child {
       margin-right: 0;
     }

and then we will get in template-rtl.css

.subhead .btn-toolbar > * {
  margin-right: .75rem;
  margin-left: 0; }
  .subhead .btn-toolbar > *:first-child {
    margin-right: 0; }

Result:
screen shot 2018-07-22 at 09 34 05

avatar joomla-cms-bot joomla-cms-bot - change - 22 Jul 2018
Category Administration Templates (admin) Administration com_admin com_associations com_banners com_cache com_categories com_checkin com_contact com_content com_contenthistory com_fields com_finder
avatar brianteeman
brianteeman - comment - 22 Jul 2018

closing this as something went wrong with resolving conflicts - will redo

avatar brianteeman brianteeman - change - 22 Jul 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-07-22 11:40:36
Closed_By brianteeman
avatar brianteeman brianteeman - close - 22 Jul 2018
avatar brianteeman
brianteeman - comment - 22 Jul 2018

See #21215

Add a Comment

Login with GitHub to post a comment