Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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).
Comment | File | Size | Author |
---|---|---|---|
#21 | change_background_color-2857933-21.patch | 468 bytes | benqwerty |
#7 | reproucing-issue.png | 207.14 KB | brentschuddinck |
seve_modal_dialog.png | 47.27 KB | Chi |
Comments
Comment #2
sandipauti CreditAttribution: sandipauti as a volunteer commentedComment #3
alarez CreditAttribution: alarez at ParallelDevs commentedHi @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.
Comment #4
benqwerty CreditAttribution: benqwerty as a volunteer commentedHi @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
Comment #5
sandipauti CreditAttribution: sandipauti as a volunteer commented@benqwerty,
As of mention in @Chi comment it's not happen on mouse over in 8.4.x. version.
Comment #6
benqwerty CreditAttribution: benqwerty as a volunteer commented@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.
Comment #7
brentschuddinck CreditAttribution: brentschuddinck as a volunteer commentedI'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:
A patch is created.
Comment #8
brentschuddinck CreditAttribution: brentschuddinck as a volunteer commentedChanged status to "Needs review" to test patch change_background_color-2857933-7.patch
Comment #9
agomezmoron CreditAttribution: agomezmoron at La Drupalera by Emergya commentedAfter applying the patch change_background_color-2857933-7.patch #7 in the 8.4.x version it seems & working in:
Chrome
Firefox
Comment #10
agomezmoron CreditAttribution: agomezmoron at La Drupalera by Emergya commentedComment #11
lauriiiThanks 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.
Comment #12
agomezmoron CreditAttribution: agomezmoron at La Drupalera by Emergya commentedHi @lauriii,
After reviewing the Seven style guide I don't see why removing the color from that button is not compatible with it.
Thanks!
Comment #13
darius.restivan CreditAttribution: darius.restivan commentedComment #14
yoroy CreditAttribution: yoroy as a volunteer and at Roy Scholten commentedThis 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.
Comment #15
lauriiiThanks for confirming @yoroy!
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.
Comment #16
agomezmoron CreditAttribution: agomezmoron at La Drupalera by Emergya commentedWorking on that
Comment #17
agomezmoron CreditAttribution: agomezmoron at La Drupalera by Emergya commentedAfter 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
Comment #18
agomezmoron CreditAttribution: agomezmoron at La Drupalera by Emergya commentedComment #19
yoroy CreditAttribution: yoroy as a volunteer and at Roy Scholten commentedIt 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
Comment #20
agomezmoron CreditAttribution: agomezmoron at La Drupalera by Emergya commentedNop, using the current 8.4.x branch :/
Comment #21
benqwerty CreditAttribution: benqwerty as a volunteer commented@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.
Comment #22
benqwerty CreditAttribution: benqwerty as a volunteer commentedComment #23
tar_inet CreditAttribution: tar_inet as a volunteer commentedIt works for me in branch 8.4.x using Chrome 57.0.2987.110 and Firefox 52.0.1
Comment #24
agomezmoron CreditAttribution: agomezmoron at La Drupalera by Emergya commentedThanks for the feeback @tar_inet
Comment #25
rachel_norfolkThe 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.
Comment #26
agomezmoron CreditAttribution: agomezmoron at La Drupalera by Emergya commentedAfter doing all the manual testing, could I claim for the credit?
Comment #27
agomezmoron CreditAttribution: agomezmoron at La Drupalera by Emergya commentedComment #28
webchickSaving commit credit.
Comment #30
yoroy CreditAttribution: yoroy as a volunteer and at Roy Scholten commentedOh 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!
Comment #31
webchickWOOHOO!
Comment #32
DuaelFrThere is a follow-up for accessibility of this button: #2863354: Add border to dialog [x] close button for hover and focus states
Comment #33
rachel_norfolktidy up of issue summary