The current background color (yellow) of close button in active state does match Seven color scheme. I don't think it was applied deliberately. If it was we need at least change its position because currently it appears a few pixels bellow the top edge of the button (see attached screenshot).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chi created an issue. See original summary.

sandipauti’s picture

Assigned: Unassigned » sandipauti
alarez’s picture

Hi @Chi. I can't replicate this issue using Drupal 8.4.x version.

I can see you reported this issue for version 8.3.x-dev.

So I guess this issue was already fixed on vesion 8.4.x. Could you update your Drupal version and test again?

Thanks.

benqwerty’s picture

Hi @alarez. The problem still occurs in 8.4.x. It doesn't appear in IE/Edge but does appear in Firefox and Chrome. It's a quick flash of yellow as you close the window.

It appears to be coming from the background color set in core/themes/seven/css/components/jquery.ui/theme.css, line 33 in 8.4.x-dev

.ui-state-active,
.ui-widget-content .ui-state-active {
  ...
  background: #fe6;
  ...
}
sandipauti’s picture

Assigned: sandipauti » Unassigned

@benqwerty,

As of mention in @Chi comment it's not happen on mouse over in 8.4.x. version.

benqwerty’s picture

@sandipauti, this was logged about the active state, not the hover state. The behaviour is the same in 8.3.x-dev and 8.4.x-dev.

brentschuddinck’s picture

Version: 8.3.x-dev » 8.4.x-dev
FileSize
207.14 KB
519 bytes

I'm looking to this right now. I think that I've found the css code that causes the issue (tested with 8.4.x-dev).

This can be fixed by changing the css in core/themes/seven/css/components/jquery.ui/theme.css to:

.ui-state-active, .ui-widget-content .ui-state-active {
background-color: transparent;
border: none;
}

A patch is created.

brentschuddinck’s picture

Status: Active » Needs review

Changed status to "Needs review" to test patch change_background_color-2857933-7.patch

agomezmoron’s picture

After applying the patch change_background_color-2857933-7.patch #7 in the 8.4.x version it seems & working in:

Chrome

  • 58.0.3029
  • 57.0.2987

Firefox

  • 52.0.1
  • 52.0
  • 51.0.1
  • 51.0
  • 51.0.2
  • 51.0.1
  • 50.0
agomezmoron’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +DevDaysSeville
lauriii’s picture

Status: Reviewed & tested by the community » Needs review

Thanks everyone for working on this issue! I agree that the yellow color does look a bit off from the Seven style guide. However, I'm not confident that it's a good idea to fully remove the active effect.

agomezmoron’s picture

Hi @lauriii,

After reviewing the Seven style guide I don't see why removing the color from that button is not compatible with it.

Thanks!

darius.restivan’s picture

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

This active effect does not make much sense, it briefly flashes and then the modal itself disappears so I'm fine with removing this. If we want to do something with this link it will be more interesting to do something on hover, but that's a different issue.

lauriii’s picture

Status: Reviewed & tested by the community » Needs work

Thanks for confirming @yoroy!

+++ b/core/themes/seven/css/components/jquery.ui/theme.css
@@ -33,8 +33,8 @@
+  background: transparent;
+  border: none;

In that case, it is redundant to set the background to transparent and to set the border as none because this element doesn't have anything set for these properties before this selector.

agomezmoron’s picture

Assigned: Unassigned » agomezmoron

Working on that

agomezmoron’s picture

After working with the latest 8.4.x version I cannot replicate it, so I think it can be closed.

Tested on:
Chrome

58.0.3029
57.0.2987

Firefox

52.0.1
52.0
51.0.1
51.0
51.0.2
51.0.1
50.0

agomezmoron’s picture

Assigned: agomezmoron » Unassigned
Status: Needs work » Needs review
yoroy’s picture

Status: Needs review » Needs work
FileSize
92.53 KB

It is still there though, I doublechecked on simplytest.me. Maybe you have the previous patch still applied in your local environment?

Attaching a small screen recording

agomezmoron’s picture

Nop, using the current 8.4.x branch :/

benqwerty’s picture

@agomezmoron, I'm still seeing the yellow in 8.4.x.

Attached a patch to remove the two lines that add the yellow border and background.

Also see #2863354 Add border to dialog close button for hover and focus states for possible addition of hover and focus states to the close button.

benqwerty’s picture

Status: Needs work » Needs review
tar_inet’s picture

It works for me in branch 8.4.x using Chrome 57.0.2987.110 and Firefox 52.0.1

agomezmoron’s picture

Thanks for the feeback @tar_inet

rachel_norfolk’s picture

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

The css looks nice, simple and specific. The change does indeed work on the targeted browsers (I have even just checked Safari, too!).

Without patch, it appears just like yoroy's animation in #19 and with the patch as attached.

I'm happy to set this to RTBC.

agomezmoron’s picture

After doing all the manual testing, could I claim for the credit?

agomezmoron’s picture

webchick’s picture

Saving commit credit.

  • yoroy committed 10464f5 on 8.4.x
    Issue #2857933 by brentschuddinck, benqwerty, yoroy, Chi, rachel_norfolk...
yoroy’s picture

Status: Reviewed & tested by the community » Fixed

Oh by the way, that was my first commit and we forgot to finish the live commit session with me posting back here. And there were other things that went wrong too, but we got there :-)

Thanks all for working on this!

webchick’s picture

FileSize
962.51 KB

WOOHOO!

Cheers

DuaelFr’s picture

rachel_norfolk’s picture

tidy up of issue summary

Status: Fixed » Closed (fixed)

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