Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Manjit.Singh’s picture

Assigned: Unassigned » Manjit.Singh
Manjit.Singh’s picture

moving images css to classy :)

Manjit.Singh’s picture

Component: forum.module » image.module
Assigned: Manjit.Singh » Unassigned
Status: Active » Needs review
LewisNyman’s picture

Status: Needs review » Needs work
core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php:
  163  
  164      $element['#theme'] = 'image_widget';
  165:     $element['#attached']['library'][] = 'image/form';
  166  
  167      // Add the image preview.

We need to remove this attachment here.

The last submitted patch, 2: image-css-to-classy-2489574-2.patch, failed testing.

Manjit.Singh’s picture

removed code as per suggestion in #4

Manjit.Singh’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 6: image-css-to-classy-2489574-6.patch, failed testing.

LewisNyman’s picture

Issue tags: +Needs screenshots, +Seven

Nice, thanks. It looks like the test shouldn't be too hard to fix. We need to take screenshots before/after in Classy and Seven.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 6: image-css-to-classy-2489574-6.patch, failed testing.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 6: image-css-to-classy-2489574-6.patch, failed testing.

Chernous_dn’s picture

Status: Needs work » Needs review
FileSize
2.85 KB

Update patch #6 I think that we need attach library to /core/themes/classy/templates/content-edit/image-widget.html.twig

star-szr’s picture

Status: Needs review » Needs work

The last submitted patch, 14: move_image_theme_css_to-2489574-14.patch, failed testing.

star-szr’s picture

Status: Needs work » Needs review
FileSize
2.11 KB

Rerolled.

lauriii’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs screenshots

No visual changes so won't be uploading screenshots

davidhernandez’s picture

Why is the library called drupal.image?

lauriii’s picture

Status: Reviewed & tested by the community » Needs review

Actually to get this align with other issues we probably should remove that library

LewisNyman’s picture

@lauriii This was originally a separate library in the module, so I think it should stay a separate library in Classy?

lauriii’s picture

Oh yeah and its being loaded conditionally. We still should rename the drupal.image to only image.

LewisNyman’s picture

I renamed this library and the file to image-widget to better describe the contents.

lauriii’s picture

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

Should this go in a css/theme folder, since it is being added to the theme category?

LewisNyman’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/themes/classy/classy.libraries.yml
@@ -27,3 +27,9 @@ search.results:
+    theme:
+      css/components/image-widget.css: {}

Nope this is a component so we should switch to component.

jaxxed’s picture

Assigned: Unassigned » jaxxed

looks like you only need the 1 line change, I'll add that to your patch.

jaxxed’s picture

just re-rolled with the small change. Couldn't find the right place to test it properly. Isn't this template supposed to load on any image field edit?

jaxxed’s picture

doh! double uploaded.

jaxxed’s picture

OK, I made a mess out of the last upload, so I am going to just upload it again.

jaxxed’s picture

just re-rolled with the small change. Couldn't find the right place to test it properly. Isn't this template supposed to load on any image field edit?

(2nd attempt at upload, repeating #29)

LewisNyman’s picture

Status: Needs review » Postponed

It looks like this can't be tested until #2511036: image-widget.html.twig never gets used (image_widget gets overridden by FieldWidget::process) is committed so setting to postponed for now.

LewisNyman’s picture

Status: Postponed » Needs review

Now we can test this patch

LewisNyman’s picture

Reroll.

LewisNyman’s picture

Issue summary: View changes
FileSize
791.38 KB

It loads! Setting to RTBC/postponed.

davidhernandez’s picture

Did you mean to change the status?

LewisNyman’s picture

Status: Needs review » Postponed

Yes :P Thanks

akalata’s picture

Status: Postponed » Closed (fixed)