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

(4.9) high contrast themes (forced colours): on no focus indication input fields / form controls #452

Open
phiw13 opened this issue Apr 28, 2021 · 2 comments
Assignees
Milestone

Comments

@phiw13
Copy link

phiw13 commented Apr 28, 2021

Reason: box-shadow is suppressed with HTC and only box-shadow is used to indicate focus on form controls with TXP-4.9dev Hive admin

STR

  • on your Mac: using Firefox 89-beta or newer as a proxy (it is not perfect, but sufficient)

  • Browser Preferences -> Language and Appearance -> Color: set to use system colours always (checkbox) and from the drop down, select Always.

  • visit Textpattern admin back-end

  • use the tab key to navigate the page. Or, just click in an input field. On text input fields you may discover that the focus is on the field if/when seeing the blinking text cursor. Eventually, maybe…. No other indication is available.

Solution, as a minimum:

@media (forced-colors: active) {
  :is(input, select, button, textarea):focus { outline: 10px solid; } 
}
  • OK, may be just outline: auto is enough – degustibus et coloribus… (atm I am not sure what Chromium/Blink based browsers do with that one though)
  • no need to specify color, currentColor is used anyway
  • include in the list any link-button or other interactive element that may have the (default) outline suppressed (e.g. .txp-details)

I leave you the pleasure to discover any other issues with high-contrast themes (no little arrows on .txp-details and sortable columns in list tables…)

PS - TXP 4.8 fares better but don’t try the navigation menu (using the keyboard)…

@philwareham philwareham self-assigned this Apr 28, 2021
@philwareham
Copy link
Owner

Thanks Philippe - I'll investigate this (and your solution) soon.

@philwareham philwareham added this to the v4.9 milestone Apr 28, 2021
@phiw13
Copy link
Author

phiw13 commented Mar 7, 2023

Form controls related:

radio + checkbox disappear when toggling state (on/off) - tested in Brave (chromium) emulation mode (forcing “forced-colors“ MQ).

solution: reset to native state in the forced-colors MQ

input:is([type=radio],[type=checkbox]) { appearance: auto }

@philwareham philwareham modified the milestones: v4.9, v5.0 Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants