Repository navigation
Commit ab9bf10
Avatar: Add colored fallbacks with foreground tinting (#84824)
* Avatar: Explore colored fallbacks and foreground tinting
* Avatar: Link fallback exploration changelog entry
* Avatar: Cover colors near the contrast crossover
* Avatar: Compare translucent fallback foregrounds
* Avatar: Remove opacity exploration and improve neutral icon contrast
* Avatar: Compare capped and uncapped fallback tinting
* Avatar: Warn about unsupported fallback colors
* Avatar: Target 3:1 contrast for person fallbacks
* Avatar: Use uncapped tinting and simplify color stories
* Avatar: Match fallback borders to the person icon tint
* Avatar: Remove borders from colored fallbacks
* Avatar: Consolidate colored examples in Storybook
* Avatar: Simplify colored Storybook examples
* Avatar: Keep color documentation focused on consumer use
* Avatar: Reduce stories and cover color behavior in browser tests
* Avatar: Let Storybook infer available controls
* Avatar: Keep shared story args in the default example
* Avatar: Define the default render in its story
* Avatar: Use only inferred Storybook controls
* Avatar: Simplify the color prop description
* Avatar: Use a typed Vitest mock for color warnings
---
Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>1 parent b660fbb commit ab9bf10
8 files changed
Lines changed: 310 additions & 246 deletions
File tree
- packages/ui
- src/avatar
- stories
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
0 commit comments