The Needs Review Queue Bot → tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- Status changed to Needs review
almost 2 years ago 1:48pm 8 February 2023 - Status changed to Needs work
almost 2 years ago 2:09pm 8 February 2023 - 🇫🇷France andypost
+++ b/core/themes/claro/js/image-anchor.es6.js @@ -0,0 +1,18 @@ + Drupal.behaviors.imageAnchor = { +++ b/core/themes/claro/js/image-anchor.js @@ -0,0 +1,19 @@ + * DO NOT EDIT THIS FILE.
es6 files no longer needed for 10.x https://www.drupal.org/node/3305487 →
- Status changed to Needs review
almost 2 years ago 7:53am 9 February 2023 - 🇮🇳India gauravvvv Delhi, India
Removed
image-anchor.es6.js
file. Attached interdiff for same. Please review - Status changed to Needs work
over 1 year ago 7:18pm 2 March 2023 - 🇺🇸United States smustgrave
Was tagged for issue summary update in #45 which still needs to happen from what I can tell.
Did not review.
- 🇮🇳India dsandhya
patch is created for hovering on the anchor instead of on the particular box a hover effect plz review
- 🇺🇸United States bnjmnm Ann Arbor, MI
Re #85 it was already established that a solution applied to the entire table would cause regressions in tables such as the one in admin/content. It can be annoying to read through all the comments in a long issue, but taking that time to read save you from wasting time on an approach that has already been rejected.
HINT: #66 mentions a way to address this that will not cause regressions and is something that I'd be willing to commit, so I'd encourage someone to take advantage of that answer key being hidden in plain sight.
- First commit to issue fork.
Added this in /workspace/DrupalPod/web/core/themes/claro/css/components/tables.pcss.css
.image-anchor tr :not(:hover) {
background-color: #000000;
}
.image-anchor tr :hover > div {
background-color: transparent;
}It works! :D
- Status changed to Needs review
over 1 year ago 7:11pm 7 June 2023 - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - Status changed to RTBC
over 1 year ago 7:25pm 7 June 2023 - 🇺🇸United States trackleft2 Tucson, AZ 🇺🇸
Applied the patch cleanly to core 11.x c8806a02991f04233f859d2ef8870363172a2186
- Status changed to Needs work
over 1 year ago 7:42pm 7 June 2023 - 🇺🇸United States bnjmnm Ann Arbor, MI
@trackleft2 This is definitely not ready for RTBC. Applying cleanly is far from the only criteria taken into account when making this decision. A patch with unwanted changes can apply cleanly! In addition, every patch uploaded to a Drupal issue has a suite of automated tests run. All of these tests must pass for an issue to be committable.
In this case, it is getting a "custom commands failed" error. That means the patch is not even passing general code formatting tests. Clicking that message will take you to a page that lists the specific reasons those checks failed and point the contributor towards what must be changed to get it working.
- Status changed to Needs review
over 1 year ago 8:06pm 7 June 2023 - last update
over 1 year ago 29,436 pass - Status changed to RTBC
over 1 year ago 10:03pm 7 June 2023 - 🇺🇸United States smustgrave
Cleaned up the tags some.
Did remove the submaintainer review tag as not sure that's needed. This is about fixing a hover effect and not how image style functions.
Following the issue summary steps I was able to confirm the issue on Drupal 11.x with a standard profile install.
Applying patch #97 when hovering over individual squares those squares are highlighted vs the whole row.
Saved the image style, edited by moving location and everything is working as expected. - Status changed to Needs work
over 1 year ago 3:37am 8 June 2023 - 🇺🇸United States bnjmnm Ann Arbor, MI
Spotted some additional things that are likely easy to address.
-
+++ b/core/themes/claro/css/components/tables.css --- a/core/themes/claro/css/components/tables.pcss.css +++ b/core/themes/claro/css/components/tables.pcss.css
Although the changes work when added here, it's better if they are added to image.admin.pcss.css as that's where the other
.image-anchor
styles are, including ones for.image-anchor <tr>
, so it will keep related styles nearby and reduce repetition. -
+++ b/core/themes/claro/css/components/tables.pcss.css @@ -141,6 +141,12 @@ tr.color-error:focus { +.image-anchor tr :hover>div {
There should be a space on each side of the
>
. If this was the only thing I'd just fix it on commit - not worth un-RTBCing for just that.
-
- 🇺🇸United States trackleft2 Tucson, AZ 🇺🇸
OK, I've renamed image.admin.css to image.admin.pcss.css and per the recommendation.
Removed the styles from core/themes/claro/css/components/tables.pcss.css
Added the styles to modules/image/css/image.admin.pcss.css - Status changed to Needs review
over 1 year ago 4:03pm 8 June 2023 - last update
over 1 year ago 29,436 pass - 🇺🇸United States trackleft2 Tucson, AZ 🇺🇸
OK, I've renamed image.admin.css to image.admin.pcss.css and per the recommendation.
Removed the styles from core/themes/claro/css/components/tables.pcss.css
Added the styles to modules/image/css/image.admin.pcss.css - Status changed to RTBC
over 1 year ago 5:12pm 8 June 2023 - 🇺🇸United States smustgrave
There actually isn't a image.admin.pcss.css file in the images module.
But changes have been moved and point 2 in #100 appear to have been addressed. Remarking.
- last update
over 1 year ago 29,437 pass - last update
over 1 year ago 29,442 pass - last update
over 1 year ago 29,448 pass - last update
over 1 year ago 29,486 pass - last update
over 1 year ago 29,499 pass - last update
over 1 year ago 29,505 pass - last update
over 1 year ago 29,531 pass - last update
over 1 year ago 29,553 pass - last update
over 1 year ago 29,559 pass - last update
over 1 year ago 29,563 pass - last update
over 1 year ago 29,571 pass 31:42 30:23 Running- last update
over 1 year ago 29,801 pass - last update
over 1 year ago 29,802 pass - last update
over 1 year ago 29,802 pass - last update
over 1 year ago 29,806 pass - Status changed to Needs review
over 1 year ago 7:35am 11 July 2023 - last update
over 1 year ago 29,806 pass - Status changed to RTBC
over 1 year ago 3:39pm 11 July 2023 - last update
over 1 year ago 29,811 pass - last update
over 1 year ago 29,815 pass - last update
over 1 year ago 29,815 pass - last update
over 1 year ago 29,819 pass, 1 fail The last submitted patch, 105: 3101460-105.patch, failed testing. View results →
- Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
over 1 year ago Waiting for branch to pass - Status changed to Fixed
over 1 year ago 3:46pm 21 July 2023 - 🇺🇸United States bnjmnm Ann Arbor, MI
It's been tough, but after 3.5 years, 108 comments, and enough screenshots to feed a small nation, the combined efforts of 37 contributors have resulted in the image styles page getting this cool slice of CSS.
+.image-anchor td:not(:hover) { + background-color: var(--color-white); +} + +.image-anchor td:hover > div { + background-color: transparent; +}
And tbh I almost dug in to see if the CSS could get a little more optimized but you know what? This works, it's an infrequently visited area of a site, not likely to result in conflicts or scalability issues. Enjoy the nicer hover in that snazzy grid!
Automatically closed - issue fixed for 2 weeks with no activity.