feat: add accessibilityDisplayShouldDifferentiateWithoutColor on macOS#49912
Conversation
|
@robb can you please sign your commit? |
b0719da to
7ec4bd3
Compare
|
@codebytere There you go |
jkleinsc
left a comment
There was a problem hiding this comment.
I think it makes more sense to put this in nativeTheme but I'll defer to @codebytere if there is a reason this belongs in systemPreferences vs nativeTheme.
@jkleinsc you're correct - this should be moved to nativeTheme.
|
Cool, I'll move it over when I'm back in the office on Monday. |
7ec4bd3 to
0b2b5b9
Compare
|
|
|
Let me know if there's something on my end to get this unstuck but fwict it's a CI-side issue? |
|
@robb could you please rebase? sorry for the delay here! |
9e56bec to
5f325d3
Compare
|
@codebytere No worries, hope this worked. |
Adds nativeTheme.shouldDifferentiateWithoutColor on macOS that maps to NSWorkspace.accessibilityDisplayShouldDifferentiateWithoutColor. If true, the user has indicated that they prefer UI that differentiates items with something other than color alone. This is useful for users with color vision deficiency.
5f325d3 to
b390209
Compare
|
Congrats on merging your first pull request! 🎉🎉🎉 |
|
Release Notes Persisted
|
|
I have automatically backported this PR to "41-x-y", please check out #50408 |
|
I have automatically backported this PR to "42-x-y", please check out #50409 |
Description of Change
Adds
nativeTheme.shouldDifferentiateWithoutColoron macOS that maps to theaccessibilityDisplayShouldDifferentiateWithoutColorproperty onNSWorkspace. Iftrue, the user has indicated that they prefer UI that differentiates items with something other than color alone. This is useful for users with color vision deficiency.For example, an app like Linear might use this to automatically show diffs in a way that that deemphasizes usage of red and green to indicate removals and additions.
A somewhat equivalent media query has been discussed, fwiw: w3c/csswg-drafts#10335
Checklist
npm testpasseschangedor addedRelease Notes
Notes: Added nativeTheme.shouldDifferentiateWithoutColor on macOS