Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save button is invisible with Goldfish or Ice colorset chosen #4415

Open
alanmels opened this issue May 22, 2020 · 11 comments · May be fixed by backdrop/backdrop#3326
Open

Save button is invisible with Goldfish or Ice colorset chosen #4415

alanmels opened this issue May 22, 2020 · 11 comments · May be fixed by backdrop/backdrop#3326

Comments

@alanmels
Copy link

alanmels commented May 22, 2020

Steps To Reproduce

To reproduce the behavior:

  1. Go to /admin/appearance/settings/basis and set Goldfish color scheme.
  2. Set the admin theme to use Basis
  3. Go to any page with submission button to find out the Save button is invisible:

empty-button

invisible

@Ammko128
Copy link

Ammko128 commented Sep 25, 2020

@stpaultim
Hi, I noticed that color schemes use the 'base' color from 'core/themes/basis/color/color.inc' as the background for the primary button. In goldfish this 'base' color is set to white (#fffeff) and since the background is set to #ffffff in goldfish, this primary button is invisible. One solution is to change the 'base' color of goldfish which I did in my PR. The other approach that I have in my mind is to add another color to all color schemes that will decide the background color of all primary buttons. I can change the code so primary buttons get another color if you consider that as a better approach than changing the base color of goldfish scheme.

Those were my suggestions for fixing this issue. I hope they were helpful. Have a good day. 👍⚪

@klonos klonos changed the title Save button is invisible with Goldfish colorset chosen Save button is invisible with Goldfish or Ice colorset chosen Sep 28, 2020
@klonos
Copy link
Member

klonos commented Sep 28, 2020

Thanks for working on this issue @Ammko128 🙏 ...as it turns out, the same issue is present with the "Ice" preset as well.

Your PR changes a color used by the Basis theme, which is used as a base theme by many other themes. This makes me worry that we might break existing sites. I would start by looking into why the other presets don't have the same issue. If we figure that out, we can mimic whatever is done there for the Goldfish and Ice presets.

@Ammko128
Copy link

@klonos
Hi, me again. I tried using Ice colorset and I noticed it doesn't have the exact same problem, but rather the save button disappears when you hover your mouse over the button.
As I noticed, all the colorsets use their 'base' color as color of their primary buttons, and 'hovermenu' color as color of that same button when it's hovered over. Also all the colorsets use their 'bg' color as a background color. By inspecting the array of Ice colorset, you can notice that it has the exact same color set as 'hovermenu' and 'bg' so that's why the button disappears when hovered over. It actually doesn't disappear but rather blends in with the color of the background.
Also when you do the same with Goldfish colorset, you should see that 'base' and 'bg' are almost same (1 hex value off). So that's why you can't see that save button until you hover the mouse over it and it changes color.
By looking at all the other colorsets, you can see that neither 'base' nor 'hovermenu' is same as it's 'bg' color. That's why all the other colorsets have their save button rendered correctly at all times.

ice

goldfish

I hope this was helpful in future decision making about this issue, since I don't think it can be fixed without breaking some sites that already use goldfish and ice presets.
And my PR didn't actually change the whole Basis theme. it only changed it's goldfish colorset. 👍

@olafgrabienski
Copy link

olafgrabienski commented Sep 28, 2020

@Ammko128 Thanks for your detailed and helpful feedback!

That the PR may "break existing sites" isn't necessarily bad. It's just not clear how we deal with such situations, see #4167.

@jenlampton jenlampton modified the milestones: 1.18.1, 1.18.2 Jan 14, 2021
@jenlampton jenlampton modified the milestones: 1.18.2, 1.18.3 Mar 24, 2021
@jenlampton jenlampton modified the milestones: 1.18.3, 1.18.14 Apr 21, 2021
@jenlampton jenlampton modified the milestones: 1.18.4, 1.19.1 May 16, 2021
@jenlampton jenlampton modified the milestones: 1.19.1, 1.19.2 May 26, 2021
@stpaultim
Copy link
Member

stpaultim commented Jul 15, 2021

To see this issue, you need to set the admin theme to "Basis". I updated the original issue to reflect this. I can confirm that this is still an issue.

@stpaultim
Copy link
Member

As I look at this issue closer, I think that the problem is a bit bigger. The color module goes through entire CSS files and replaces colors when you change color schemes. I believe that this is resulting in color changes that were not necessarily intended by the color module.

I suspect that this is mostly an issue if you are using Basis as your admin theme or if users without access to the admin theme are accessing admin pages (node creation forms).

I'm thinking about opening an issue where we prevent this from happening. @jenlampton and I just discussed two possibilities.

@indigoxela
Copy link
Member

The problem is, that the color for the "mobile site background" is used in many other places. A quick fix could be to use #d46f2e (a dark orange) for that, so the buttons are visible. This might need some more testing, though...

goldfish-visible-buttons

@indigoxela
Copy link
Member

In Ice the "main menu hover background" causes the problem. So maybe we need a little trick for that...

@klonos
Copy link
Member

klonos commented Nov 4, 2021

Wondering if a way forward with this could be #4829 and then converting the color presets in core/themes/basis/color/color.inc into proper settings/config 🤔 ...we could then ship core with a fixed version, but not touch config for existing sites.

@roxy-jaqkar
Copy link

This issue is also present in Views Slideshow navigation.

@jenlampton jenlampton modified the milestones: 1.20.2, 1.20.3 Nov 18, 2021
@quicksketch quicksketch modified the milestones: 1.20.3, 1.20.4 Dec 3, 2021
@herbdool
Copy link

I agree with @indigoxela on keeping the fix small and specific to just this for now.

@herbdool herbdool removed this from the 1.20.4 milestone Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants