Skip to content

Variants: improve strong variant generation algorithm to better handle inversion#4420

Merged
dzearing merged 6 commits intomicrosoft:masterfrom
phkuo:phkuo/betterStrong
Apr 2, 2018
Merged

Variants: improve strong variant generation algorithm to better handle inversion#4420
dzearing merged 6 commits intomicrosoft:masterfrom
phkuo:phkuo/betterStrong

Conversation

@phkuo
Copy link
Copy Markdown
Contributor

@phkuo phkuo commented Mar 30, 2018

Pull request checklist

  • Addresses an existing issue: Fixes #0000
  • Include a change request file using $ npm run change

Description of changes

The strong variant is unique in that it is an inverse of the base theme. If the base theme has a light background, the strong variant has a dark background, and vice versa. The algorithm should not use ANY slots from the original theme as defaults, because the inversion will cause accessibility issues. Instead, only use new slots in the strong variant, forcing regeneration of all semantic slots.

Focus areas to test

(optional)

@phkuo phkuo requested a review from joschect March 30, 2018 22:59
@dzearing dzearing merged commit f4227ad into microsoft:master Apr 2, 2018
@phkuo phkuo deleted the phkuo/betterStrong branch June 7, 2018 21:55
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants