Problem/Motivation

The node preview bar looks bad on narrow screens

Proposed resolution

Add a media query so the horizontal styling doesn't apply on small screens

Remaining tasks

None.

User interface changes

A better node preview bar on mobile.
preview_bar_button_and_view_mode_spacing-2524284-65
See comment #72.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#89 preview_bar_button_and_view_mode_spacing-2524284-65.patch.txt1.37 KBleanderl
#86 after-patch-code-change(1).png49.6 KBbandanasharma
#86 after-patch-code-changes.png26.18 KBbandanasharma
#86 before-patch-code (2).png32.74 KBbandanasharma
#86 before-patch-code(1).png47.61 KBbandanasharma
#86 after-patch.png36.6 KBbandanasharma
#86 before-patch.png36.61 KBbandanasharma
#85 2524284-85.patch1.68 KBaj2r
#85 interdiff.txt315 bytesaj2r
#75 RTL_BEFORE.png23.47 KBkapil17
#75 RTL_AFTER.png23.13 KBkapil17
#75 LTR_BEFORE.png27.02 KBkapil17
#75 LTR_AFTER.png25.17 KBkapil17
Screenshot 2015-07-03 16.46.30.jpg90.97 KBLewisNyman
#1 Screen Shot 2015-07-08 at 4.03.05 pm.png37.58 KBAlviMurtaza
#1 Screen Shot 2015-07-08 at 4.03.31 pm.png37.91 KBAlviMurtaza
#1 2524284-preview-bar-spacing-1.patch687 bytesAlviMurtaza
#6 node_preview_bar_spacing-2524284-6.patch951 bytesAleksandar_P
#6 interdiff.txt1.18 KBAleksandar_P
#8 Screen Shot 2015-08-04 at 4.22.28 pm.png41.18 KBSabreena
#9 Screen Shot 2015-08-05 at 11.21.35.png216.8 KBWim Leers
#17 rtl_before.jpg11.92 KBTony-Mac
#17 rtl_after.jpg13.18 KBTony-Mac
#17 interdiff.txt676 bytesTony-Mac
#17 node_preview_bar_spacing-2524284-17.patch795 bytesTony-Mac
#18 Screen Shot 2015-09-22 at 16.45.03.png65.26 KBpjbaert
#18 Screen Shot 2015-09-22 at 16.36.20.png323.6 KBpjbaert
#20 node_preview_bar_spacing-2524284-20.patch808 bytessnehi
#22 The spacing of the buttons in the preview bar is cramped on narrow screens new - with patch.png40.59 KBmeenakshi.r
#22 The spacing of the buttons in the preview bar is cramped on narrow screens new - without patch.png29.45 KBmeenakshi.r
#24 the_spacing_of_the-2524284-24.patch5.13 KBvulcanr
#24 spacing-fi.png89.63 KBvulcanr
#27 Spacing in (firefox) - before applying patch.jpg47.13 KBNikitaJain
#27 Spacing bartik theme in (chrome) - before applying patch.jpg83.59 KBNikitaJain
#27 Spacing iphone5 in (firefox) - after applying patch.jpg46.84 KBNikitaJain
#27 Spacing iphone 5 in (chrome) - after applying patch.jpg97.4 KBNikitaJain
#27 Spacing iphone 5 in (firefox) rtl - after applying patch.jpg46.5 KBNikitaJain
#29 2524284-25.patch5.13 KBrashid_786
#31 preview_bar_button_spacing-2524284-29_BEFORE-AFTER-MOBILE.png48.46 KBHubbs
#31 preview_bar_button_spacing-2524284-29_BEFORE-AFTER-WIDE.png123.01 KBHubbs
#33 preview_bar_button_spacing-252484-33.patch1.27 KBHubbs
#34 preview_bar_button_spacing-252484-34.patch1.37 KBHubbs
#34 preview_bar_button_spacing-252484-34_LTR-before-after.png90.04 KBHubbs
#34 preview_bar_button_spacing-252484-34_RTL-before-after.png46.68 KBHubbs
#36 2524284-rtl-example-screenshot.png109.95 KBwebbykat
#38 Selection_002.png16.7 KBdorficus
#40 ChromeNarrow-After.png50.48 KBkarolus
#40 FirefoxNarrow-After.png62.81 KBkarolus
#50 firefox-preview-buttons.png50.51 KByoroy
#53 Content_Testing___D8_Contrib.png111.64 KBironkiat
#53 Content_Testing___D8_Contrib 2.png57.29 KBironkiat
#53 preview-element-float-right.png38.44 KBironkiat
#55 2524284-55.patch1.81 KBSaphyel
#56 320 Res.mov569.84 KBaliyakhan
#58 preview-options.mp4635.73 KByoroy
#59 interdiff-33-55.txt953 bytesSaphyel
#63 RTL-Preview-bar-desktop-before-click.png77.98 KBSabreena
#63 RTL-Preview-bar-desktop-on-click-manage-menu.png104.03 KBSabreena
#64 RTL-Patch-34-desktop-testing.png89.61 KBSabreena
#64 RTL-Patch-34-tab-testing.png93.57 KBSabreena
#65 preview_bar_button_and_view_mode_spacing-2524284-65.patch1.37 KBSabreena
#65 RTL-Preview-bar-after-applying-patch-1.png105.2 KBSabreena
#65 RTL-Preview-bar-after-applying-patch-2.png95.8 KBSabreena
#65 RTL-Preview-bar-after-applying-patch-3.png95.28 KBSabreena
#65 RTL-Preview-bar-after-applying-patch-4.png55.89 KBSabreena
#67 after-patch-mobile-RTL.png25.6 KBvijay.mayilsamy
#67 after-patch-tab-RTL.png36.09 KBvijay.mayilsamy
#67 after-patch-desktop-RTL.png49.08 KBvijay.mayilsamy
#67 after-mobile.png25.53 KBvijay.mayilsamy
#67 after-tab.png36.83 KBvijay.mayilsamy
#67 after-desktop.png50.75 KBvijay.mayilsamy
#68 before-patch-mobile-RTL.png26.26 KBvijay.mayilsamy
#68 before-patch-tab-RTL.png37.39 KBvijay.mayilsamy
#68 before-patch-desktop-RTL.png49.16 KBvijay.mayilsamy
#68 before-patch-tab.png36.9 KBvijay.mayilsamy
#68 before-patch-mobile.png26.08 KBvijay.mayilsamy
#68 before-patch-desktop.png49.11 KBvijay.mayilsamy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

AlviMurtaza’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
37.58 KB
37.91 KB
687 bytes

Added spacing to prevent overlapping of select box in preview bar for ltr and rtl

AlviMurtaza’s picture

Issue summary: View changes
LewisNyman’s picture

Status: Needs review » Needs work

Thanks for the patch. The CSS you added in node.preview.css is actually overriding CSS that is in Bartik's node-preview.css. Instead of overridding it, can we just put that CSS in a min-width media query? Thanks.

LewisNyman’s picture

Thanks for the patch. The CSS you added in node.preview.css is actually overriding CSS that is in Bartik's node-preview.css. Instead of overridding it, can we just put that CSS in a min-width media query? Thanks.

Aleksandar_P’s picture

Assigned: Unassigned » Aleksandar_P
Aleksandar_P’s picture

I have rewritten the node-previrew.css using existing min-width media query.

Aleksandar_P’s picture

Assigned: Aleksandar_P » Unassigned
Status: Needs work » Needs review
Sabreena’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
41.18 KB

Patch looks good to me. Attaching a Shot.

Wim Leers’s picture

Title: The spacing of the preview bar on is cramped on narrow screens » Node preview bar sits on top of page, is cramped on narrow screens, should use Drupal.displace() JS API instead of CSS
Status: Reviewed & tested by the community » Needs work
Issue tags: +JavaScript
FileSize
216.8 KB

The screenshots in #1 made me realize something, having recently debugged the Toolbar code.

The real problem here is that the preview bar simply sits on top of the page. It instead should be pushing the rest of the page down, just like the Toolbar does. Attached is a screenshot that clearly illustrates it.

I know that none of this uses any JS (this is generated by \Drupal\node\Form\NodePreviewForm::buildForm()). If this were not using CSS, but instead used the Drupal.displace() API, this problem would not exist.

LewisNyman’s picture

@Wim I'm all for improving this UI component. I was thinking that maybe this could be in the toolbar module so other modules could reuse it? This feels like a separate issue to the one reported here though, so my instinct is to split them. What do you think?

Wim Leers’s picture

Drupal.displace() was created as part of the Toolbar work, but it's already a generic component that anything that wants to basically "change the viewport" — which this preview bar is one example of, the Toolbar is another — can and should use. See drupal.displace in core.libraries.yml. Sorry for not making that more clear!

So, given that, AFAICT this really is exactly the issue reported here? If the preview bar started to use Drupal.displace(), all of the changes here would basically be reverted AFAICT. If I'm right about that, then it feels like we should just apply the proper solution right away here. But, if you feel it's better to get this in as an interim step, that's fine by me too. As long as you're aware that this is not a real solution.

LewisNyman’s picture

The problem here is in the screenshot in the issue summary, the buttons in the preview bar sit too close to each other and are hard to tap on mobile.

Wim Leers’s picture

Title: Node preview bar sits on top of page, is cramped on narrow screens, should use Drupal.displace() JS API instead of CSS » The spacing of the buttons in the preview bar is cramped on narrow screens
Status: Needs work » Reviewed & tested by the community
Issue tags: -JavaScript
Related issues: +#2550691: Node preview bar occludes page header, should use Drupal.displace() JS API instead of CSS

Oh! I'm very sorry. I read "cramped on narrow screen" and saw the screenshot in #8. I totally missed the screenshot in the IS.

Apologies!

Filed #2550691: Node preview bar occludes page header, should use Drupal.displace() JS API instead of CSS for what I thought we were discussing.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
  1. +++ b/core/modules/node/css/node.preview.css
    @@ -11,11 +11,34 @@
    +[dir="rtl"] .node-preview-container .node-preview-backlink {
    +  float: none;
    +}
    +
    +[dir="rtl"] .node-preview-container .form-type-select {
    +  display: block;
    +}
    

    Why are these changes necessary?

  2. +++ b/core/modules/node/css/node.preview.css
    @@ -11,11 +11,34 @@
    +  .node-preview-container .node-preview-backlink {
    +    float: left;
    +  }
    +  ¶
    

    There is unneeded spaces on the last line here. And the float should have /* LTR */ after it.

Tony-Mac’s picture

Assigned: Unassigned » Tony-Mac
Issue tags: +#DUGBE0609

I am working on this at the dug-BE code sprint in Ghent.

StryKaizer’s picture

Issue tags: -#DUGBE0609 +DUGBE0609

Tag fix

Tony-Mac’s picture

Assigned: Tony-Mac » Unassigned
Status: Needs work » Needs review
FileSize
11.92 KB
13.18 KB
676 bytes
795 bytes

Referring to comment 14
1. Float none and display block were not needed. Please see attached screenshots for before and after changes. The code was deleted.
2. I removed the two superfluous spaces and added the LTR comment.

Please review.

pjbaert’s picture

Status: Needs review » Needs work
FileSize
65.26 KB
323.6 KB

This doesn't really look OK. See screenshot.

+++ b/core/modules/node/css/node.preview.css
@@ -15,19 +15,11 @@
-[dir="rtl"] .node-preview-container .form-type-select {
-  display: block;
-}

I do believe we need this part. (I added the CSS back to in Chrome to check this. See attachment 2)

pjbaert’s picture

Issue tags: +Novice
snehi’s picture

According to @pjbaert

Attached patch.

snehi’s picture

Assigned: Unassigned » snehi
Status: Needs work » Needs review
meenakshi.r’s picture

I tested the issue.
Issue is still reproducible with the patch.

before patch

after patch

snehi’s picture

Assigned: snehi » Unassigned

Meanwhile unassigned issue i am not a UI expert.

vulcanr’s picture

Status: Needs work » Needs review
FileSize
5.13 KB
89.63 KB

Fixed this issue. Added display block for that select div. Related to the node-preview-class.

Bojhan’s picture

vulcanr’s picture

This is specific to bartik

NikitaJain’s picture

Tested the_spacing_of_the-2524284-24.patch on Firefox & chrome browser for Ubuntu 14.0.4.
Spacing added to prevent overlapping of select box in preview bar.
Patch looks good for ltr. But for rtl the issue is not resolved after applying the patch.
Screenshots attached.

herom’s picture

Status: Reviewed & tested by the community » Needs work

The latest patch contains unrelated changes in sites/default/ directory.

rashid_786’s picture

Status: Needs work » Needs review
FileSize
5.13 KB
snehi’s picture

Issue summary: View changes

@rashid can we please have interdiff please

Hubbs’s picture

#29 patched fixed the issue, but created a new issue for wide screens. At this point I didn't continue to check RTL. Screenshots below.

preview_bar_button_spacing-2524284-29_BEFORE-AFTER-MOBILE.png

preview_bar_button_spacing-2524284-29_BEFORE-AFTER-WIDE.png

Hubbs’s picture

Status: Needs review » Needs work
Hubbs’s picture

Status: Needs work » Needs review
FileSize
1.27 KB

EDIT - New post to follow. I missed some RTL stuff with the 'back to content editing button'

Hubbs’s picture

Created a new patch to fix this issue. All changes made to core/themes/bartik/css/components/node-preview.css

Modifications include:

.node-preview-container
padding: 10px; changed to padding: 5px 10px;

.node-preview-backlink
margin: 0; changed to margin: 5px 10px 5px 0; /* LTR */
Added display: inline-block;

[dir="rtl"] .node-preview-backlink
Added margin: 5px 0 5px 10px;

Added

[dir="rtl"] .node-preview-backlink::after {
  content: '';
  width: 10px;
  display: inline-block;
}
.node-preview-container .form-item-view-mode {
  display: inline-block;
  margin: 5px 0;
}
[dir="rtl"] .node-preview-container .form-item-view-mode {
  float: right;
}

------------------------
Before and Afters

preview_bar_button_spacing-252484-34_LTR-before-after.png

Right to Left
NOTE: I couldn't figure out how to simulate this in my browsers. This is just showing the RTL code applied manually simulating the best I could.
preview_bar_button_spacing-252484-34_RTL-before-after.png

emma.maria’s picture

Issue tags: +Needs manual testing
webbykat’s picture

Patch worked nicely for me. I also tried it out RTL and it appears appropriate- slightly different from the simulated version above because of where the field label and colon appears, but the styling itself is right. Steps for anyone else to confirm there as well:

  • Enable Language module.
  • Go to Configuration > Regional and language > Language.
  • Add the Arabic language. Save.
  • Set Arabic as default.
  • View the page and preview as usual - still appears in English.
dorficus’s picture

Also manually testing

dorficus’s picture

FileSize
16.7 KB

Also tested and can confirm using same steps as @webbykat outlined.

dorficus’s picture

Status: Needs review » Reviewed & tested by the community
karolus’s picture

Also tested and confirmed as Webbykat had outlined in #36.

Did see another styling issue, though--the dropdown select reverts to defaults in Firefox. This is shown in the screen grab:
Firefox View

This is specific to Firefox, as shown on the same screen in Chrome:
Chrome View

dorficus’s picture

I believe that the FF has a different CSS selector for that select element. I'll look into it and see what I can find.

dorficus’s picture

So, the default styling for the dropdown/select is created by the user agent stylesheet. Do we need the Firefox select to look the same as the Chrome, and if so, should we be checking on other browsers to try and match the styles?

catch’s picture

Component: node system » Bartik theme

Moving to Bartik.

emma.maria’s picture

Status: Reviewed & tested by the community » Needs review

Knocking this down to Needs Review as there are some concerns in the last few comments.

yoroy’s picture

Status: Needs review » Needs work

There's a better looking select list in Firefox when using Drupal 8.0 so looks like we lost some styling indeed.
The same select already looks worse (default) when using Firefox and Drupal 8.1.x *without this patch*, so this little visual regression is probably not caused by this patch.

ironkiat’s picture

@yoroy, I just dig into the commits, it seems like the nice select styles for Firefox appears in Seven theme only, not ported into Bartik yet.

Commit 9e6dd21
core/themes/seven/css/style.css

 * Select elements - Webkit only
 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  select {
    cursor: pointer;
    -webkit-appearance: none;
    padding: 1px 1.571em 1px 0.5em; /* LTR */
    border: 1px solid #a6a6a6;
    border-radius: 0.143em;
    background:
      url("../../../misc/icons/333333/caret-down.svg") no-repeat 99% 63%,
      -webkit-linear-gradient(top, #f6f6f3, #e7e7df); /* LTR */
    text-shadow: 0 1px hsla(0, 0%, 100%, 0.6);
    font-size: 0.875rem;
    transition: all 0.1s;
    -webkit-font-smoothing: antialiased;
  }
  [dir="rtl"] select {
    padding: 1px 0.714em 1px 1.571em;
    background-position: 1% 63%, 0 0;
  }
  select:focus,
  select:hover {
    background-image: url("../../../misc/icons/333333/caret-down.svg"),
    -webkit-linear-gradient(top, #fcfcfa, #e9e9dd);
    color: #1a1a1a;
  }
  select:hover {
    box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.125);
  }
}

/**

emma.maria’s picture

I am going to jump in here and say that the "look and feel" styling of the components themselves within the preview bar is out of scope for this issue.
As long as the horizontal layout of the components is no longer broken this issue is complete and we can most definitely raise a follow up for the select element styling in Bartik.

emma.maria’s picture

Status: Needs work » Needs review
yoroy’s picture

Agreed that whatever needs to be done to improve the look of the select list is not in scope of this issue.

yoroy’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
50.51 KB

Thanks for digging that up @ironkiat. Could you create a seperate issue for that in the Bartik queue?

Patch in #24 still worked just fine on simplytest and Drupal 8.1, so probably rtbc

ironkiat’s picture

Thanks @yoroy, created issue: https://www.drupal.org/node/2674292

star-szr’s picture

Status: Reviewed & tested by the community » Needs review

#24 would need work (it incorrectly changes files outside of the scope of this issue). #34 seems more promising overall. Although it's more complex it seems like it had a lot more testing than #24.

Putting to needs review so we can decide which fix we want to go with and give the relevant patch another round of manual testing and screenshots please :)

ironkiat’s picture

Tested and reviewed patch 34, seems to work pretty well on both desktop and mobile sizes.

Desktop:
preview mode firefox

Mobile:
Preview element firefox mobile

On Firefox, after applying the patch in here: https://www.drupal.org/node/2674292 - the select element looks as per the screenshot above.

A possible further fine tuning may be to float the entire "View mode" to the right and when screen sizes gets really small (below 320px) then we remove the float.

Preview button float right Firefox

Saphyel’s picture

Assigned: Unassigned » Saphyel
Issue tags: +dclondon

I'm going to do the changes that #53 said.

Saphyel’s picture

aliyakhan’s picture

FileSize
569.84 KB

Looks good

Wim Leers’s picture

yoroy’s picture

Version: 8.0.x-dev » 8.1.0-beta1
Status: Needs review » Needs work
FileSize
635.73 KB

There's a problem with the view mode select list becoming invisible with the toolbar in vertical mode. See attached screencast

@ironkiat Why do you think it is an improvement to float the view mode select list to the right? For left-to-right languages this drastically reduces the discoverability which I'm not sure we want to do.

Speaking of left-to-right, maybe this needs to be checked with a right-to-left language as well.

Saphyel’s picture

FileSize
953 bytes

Interdiff

ironkiat’s picture

@yoroy, totally agree, yeah I'm not too familiar how it should be when it's for right-to-left language...does the Back to Content Editing appear on the right instead?

I suggested the view mode select list to be on the right because I felt it should be separated from the "back button". Giving it some visual separation will possibly help to not let users feel they belong to the same group / action, which they shouldn't be. Both are very different actions we all know that.

prateekS’s picture

Assigned: Unassigned » prateekS
prateekS’s picture

Assigned: prateekS » Unassigned
Sabreena’s picture

Tested the latest patch #55 for both LTR and RTL directions and I agree with @yoroy. By floating the view mode select list to the right in LTR, or to the left in RTL pushes the view mode out and it becomes invisible (when the toolbar is in vertical mode). Attaching SS.
As per my views, we should keep the select list aligned with the "back to content editing" button for desktop, and for mobile layout select list will appear just below the button as done in patch #34.

Sabreena’s picture

Applied patch #34 - https://www.drupal.org/files/issues/preview_bar_button_spacing-252484-34..., LTR looks good.
However, for RTL there is no change. And for screen resolution 768px view mode select list is cropped.
Adding the Screenshots for RTL.

Sabreena’s picture

vijay.mayilsamy’s picture

i'm working on this

vijay.mayilsamy’s picture

I had applied the patch and tested it locally. It looks fine to me

vijay.mayilsamy’s picture

Here are the screenshots of the page before applying the patch

vijay.mayilsamy’s picture

Issue summary: View changes

Here are the screenshots of page before the fix

vijay.mayilsamy’s picture

Assigned: Unassigned » vijay.mayilsamy
vijay.mayilsamy’s picture

I have tested it manually and looks fine to me. Here are the screenshots of before and after the patch updates:

AFTER

RTL - Mobile:

LTR - Mobile:

RTL - Tab:

LTR - Tab:

RTL - Desktop:

LTR - Desktop:

BEFORE

RTL - Mobile:

LTR - Mobile :

RTL - Tab:

LTR - Tab:

RTL - Desktop:

LTR - Desktop:

vijay.mayilsamy’s picture

Issue summary: View changes
nikunjkotecha’s picture

Assigned: vijay.mayilsamy » Unassigned
Status: Needs review » Reviewed & tested by the community
kapil17’s picture

FileSize
25.17 KB
27.02 KB
23.13 KB
23.47 KB

i have further validated this issue at drupal camp delhi 2016 . please refer attached screenshot.

RTL BEFORE
RTL BEFORE

RTL AFTER
RTL AFTER

LTR AFTER
LTR AFTER

LTR BEFORE
LTR BEFORE

kapil17’s picture

xjm’s picture

Version: 8.1.0-beta1 » 8.3.x-dev
Bojhan’s picture

Thanks for all the work, excited to see this go in!

xjm’s picture

Issue summary: View changes

Updating the summary to link the manual testing in #72 rather than every screenhsot, because every time I look at this issue, I am completely overwhelmed and can't figure out what I am looking at.

xjm’s picture

Issue summary: View changes
xjm’s picture

Status: Reviewed & tested by the community » Needs work

Couple things I noticed:

  1. +++ b/core/modules/node/css/node.preview.css
    @@ -11,11 +11,34 @@
    +[dir="rtl"] .node-preview-container .node-preview-backlink {
    +  float: none;
    +}
    ...
    +
    +  [dir="rtl"] .node-preview-container .node-preview-backlink {
    +    float: right;
    +  }
    

    Isn't the second hunk here overriding the first? Let's remove the first one? Edit: Ah, I see, the second is only for the media query version. Still, the first hunk looks incorrect and/or unnecessary, since we never specify this for LTR.

  2. +++ b/core/modules/node/css/node.preview.css
    @@ -11,11 +11,34 @@
    +  .node-preview-container .node-preview-backlink {
    +    float: left;
    +  }
    +  ¶
    

    There is trailing whitespace at the end of this hunk. We should reroll to fix that, at least.

Thanks everyone!

xjm’s picture

+++ b/core/modules/node/css/node.preview.css
@@ -11,11 +11,34 @@
+.node-preview-container .form-type-select {
+  display: block;
+}
...
+[dir="rtl"] .node-preview-container .form-type-select {
+  display: block;
+}

Should these be combined into a single entry for clarity?

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

aj2r’s picture

Assigned: Unassigned » aj2r
Issue summary: View changes
aj2r’s picture

Assigned: aj2r » Unassigned
Status: Needs work » Needs review
Issue tags: +DevDaysSeville, +drupaldevdays
FileSize
315 bytes
1.68 KB

Hi,

the code does not match with the code at #81 and #82, and patches updated, in branch 8.4.x.

I've just removed the space in line 23 of node.preview.css at core/modules/node/css.

bandanasharma’s picture

#85 patch apply cleanly. Not seen any visualize ui impact before and after apply patch. Observe some code level changes happen in the core/modules/node/css/node.preview.css and core/themes/bartik/css/components/node-preview.css

In the node/css/node.preview.css file just remove new line space and in bartik/css/components/node-preview.css file apply some css changes or patch add these new css:

[dir="rtl"] .node-preview-backlink::after {
  content: '';
  width: 10px;
  display: inline-block;
}
.node-preview-container .form-item-view-mode {
  display: inline-block;
  margin: 5px 0;
}
[dir="rtl"] .node-preview-container .form-item-view-mode {
  margin-right: 0;
}

Attached the some before and after screenshot.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

leanderl’s picture

We (leanderl, sannastrand, marikaj) are reviewing this on DrupalCon Vienna...

leanderl’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
1.37 KB

Applied and tested patch in #65. It works very well for LTR and RTL.

The discussion in #81 and #82 seems to be about some patch differerent than #65. For that reason we have rerolled, tested and reuploaded the patch in #65.

Set to RTBC like it was in #74 and further confirmed in #75.

Worked on this on Vienna 2017 Code sprint with
marikaj, sannastrand

got mentorship from jcventura

  • lauriii committed 4a1d43f on 8.5.x
    Issue #2524284 by Hubbs, Sabreena, Tony-Mac, AlviMurtaza, Aleksandar_P,...

lauriii credited lauriii.

lauriii credited marikaj.

lauriii’s picture

Version: 8.5.x-dev » 8.4.x-dev
Issue tags: -Needs manual testing

I removed changes made to the core CSS files since they were unrelated for the actual bug fix. Other than that the changes look good visually and code wise.

Committed 4a1d43f and pushed to 8.5.x. Thanks!

I haven't cherry-picked this to 8.4.x as I will still check with the other maintainers if that's fine.

lauriii’s picture

Version: 8.4.x-dev » 8.5.x-dev
Status: Reviewed & tested by the community » Fixed

Discussed this issue with @xjm and we decided not to backport this to 8.4.x. 8.4.0 was released, so we think that is better to leave this just for the next minor release. It takes a lot of energy to make assumptions of how disruptive some CSS changes are, so I don't think it is worth taking a risk on this issue. As mention earlier, this has been already committed to 8.5.x, and will be released on 8.5.0. Thanks everyone for your contributions!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

LewisNyman’s picture