- 🇨🇦Canada mgifford Ottawa, Ontario
- 🇺🇸United States kentr Durango, CO
Some of the icons also need attention for the "pressed" and / or "active link" states. Here's a screenshot.
@cwilcox808 said this RE
forced-colors
styling for the "pressed" state of the buttons:For
aria-pressed="true"
, you could maybe setborder-color: Highlight;
, buttons in that state wouldn't have a visual change on hover but focused buttons would still have the addition of the outline. - 🇮🇳India libbna New Delhi, India
Hi,
I was able to reproduce the issue locally by switching to forced colors mode. In comment #6, @kentr suggested removing the Claro overrides. However, I had a follow-up question: if we remove those overrides, do we have alternative images or icons to use in their place? If not, what would we be replacing them with?Would appreciate some clarification before proceeding. Thanks!
- 🇺🇸United States kentr Durango, CO
@libbna
In comment #6, @kentr suggested removing the Claro overrides. However, I had a follow-up question: if we remove those overrides, do we have alternative images or icons to use in their place? If not, what would we be replacing them with?
Now that Gin will replace Claro → , I'd say disregard my suggestion in #6.
But just to clarify the thought behind it: I was suggesting removing the Claro overrides for these particular icons altogether so that the icons won't go back to being broken when the admin theme is Claro (i.e., with the Standard installation profile).
- 🇮🇳India libbna New Delhi, India
@kentr thanks for clarification but now how can we resolve this issue? Now that claro is being replaced, I guess we can replace the overrides too. No?
- 🇺🇸United States kentr Durango, CO
@libbna,
My thinking is that fixing the icons in the Toolbar module will still resolve the issue in any theme that doesn't override them.
Olivero doesn't AFAIK, so the changes will take effect on non-admin pages by default. And for Drupal CMS admin pages, the change will also appear there if Gin doesn't override the icons.
If there's a need to resolve the problem for Claro, it can be a separate issue that's specific to Claro.
- 🇺🇸United States kentr Durango, CO
I just learned that Gin inherits a lot of Claro code: 🌱 [META] Gin 6.x Active .
So, limiting this change to the Toolbar module may not solve the problem in Gin (if it exists at all). But I'm guessing that any change to Claro libraries for 🌱 [META] Gin 6.x Active is best done specifically as part of that effort so that it can be analyzed beforehand.
- 🇺🇸United States kentr Durango, CO
I incorrectly assumed that when not in Claro, the toolbar styles are provided by the Toolbar module.
It turns out that Claro overrides the toolbar styles even when it's not the default theme: #3070493: Introduce a mechanism to provide an alternate Claro design for the toolbar in the future → .
If Claro is the admin theme and Olivero (or a random other theme) is the default theme, Claro will dictate the toolbar styles for the default theme also.
So, it looks like we do have to change both the Toolbar module and Claro for this issue.
- 🇺🇸United States kentr Durango, CO
Adding a suggestion:
📌 Use ARIA disclosure pattern for Toolbar buttons with trays Active will hopefully result in the
role="button"
added by JavaScript instead of it being present in the initial markup.If that issue lands before this is completed, it would be great to include here some CSS rule(s) based on
role="button"
that will set the system-color of toolbar buttons toButtonText
after they are processed by JavaScript.Something along these lines:
@media (forced-colors: active) { .toolbar .toolbar-item[role="button"] { color: buttontext; } .toolbar .toolbar-item[role="button"]::before { /* Assuming background images are converted to mask images. */ background-color: buttontext; } }
There's related discussion here.
I do not recommend letting 📌 Use ARIA disclosure pattern for Toolbar buttons with trays Active block this issue, though.