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

Darkmode – Avatar 👤 #9257

Merged
merged 17 commits into from
Oct 27, 2023
Merged

Darkmode – Avatar 👤 #9257

merged 17 commits into from
Oct 27, 2023

Conversation

mxdvl
Copy link
Contributor

@mxdvl mxdvl commented Oct 20, 2023

What does this change?

  • Support dark mode for Avatar.tsx
  • Remove decidePalette’s background.avatar

Why?

Closes #9238

Screenshots

image

@github-actions
Copy link

github-actions bot commented Oct 20, 2023

Size Change: -10.4 kB (-1%)

Total Size: 1.41 MB

Filename Size Change
dotcom-rendering/dist/1135.web.legacy.********************.js 0 B -3.22 kB (removed) 🏆
dotcom-rendering/dist/1418.web.********************.js 10 kB -149 B (-1%)
dotcom-rendering/dist/2038.web.********************.js 0 B -4.79 kB (removed) 🏆
dotcom-rendering/dist/2732.web.********************.js 0 B -2.87 kB (removed) 🏆
dotcom-rendering/dist/3200.web.legacy.********************.js 0 B -4.94 kB (removed) 🏆
dotcom-rendering/dist/3653.web.********************.js 12.5 kB -163 B (-1%)
dotcom-rendering/dist/4895.web.legacy.********************.js 0 B -3.69 kB (removed) 🏆
dotcom-rendering/dist/6389.web.legacy.********************.js 0 B -4.59 kB (removed) 🏆
dotcom-rendering/dist/7569.web.********************.js 4.65 kB -265 B (-5%)
dotcom-rendering/dist/AdPortals-importable.web.********************.js 4.94 kB +812 B (+20%) 🚨
dotcom-rendering/dist/AppsFooter-importable.web.legacy.********************.js 5.03 kB +824 B (+20%) 🚨
dotcom-rendering/dist/Carousel-importable.web.********************.js 7.75 kB +191 B (+3%)
dotcom-rendering/dist/DocumentBlockComponent-importable.web.legacy.********************.js 3.01 kB +891 B (+42%) 🚨
dotcom-rendering/dist/EmbedBlockComponent-importable.web.legacy.********************.js 3.08 kB +881 B (+40%) 🚨
dotcom-rendering/dist/FetchOnwardsData-importable.web.legacy.********************.js 2.89 kB +509 B (+21%) 🚨
dotcom-rendering/dist/LatestLinks-importable.web.********************.js 1.34 kB +371 B (+38%) 🚨
dotcom-rendering/dist/MapEmbedBlockComponent-importable.web.legacy.********************.js 4.47 kB +864 B (+24%) 🚨
dotcom-rendering/dist/MostViewedFooterData-importable.web.legacy.********************.js 6.86 kB +4.9 kB (+250%) 🆘
dotcom-rendering/dist/MostViewedRightWrapper-importable.web.legacy.********************.js 3.56 kB +847 B (+31%) 🚨
dotcom-rendering/dist/RichLinkComponent-importable.web.********************.js 5.58 kB -635 B (-10%) 👏
dotcom-rendering/dist/ShowMore-importable.web.legacy.********************.js 5.52 kB +477 B (+9%) 🔍
dotcom-rendering/dist/TableOfContents-importable.web.********************.js 3.79 kB +780 B (+26%) 🚨
dotcom-rendering/dist/TableOfContents-importable.web.legacy.********************.js 3.57 kB +807 B (+29%) 🚨
dotcom-rendering/dist/UnsafeEmbedBlockComponent-importable.web.legacy.********************.js 3.36 kB +892 B (+36%) 🚨
dotcom-rendering/dist/VideoFacebookBlockComponent-importable.web.legacy.********************.js 4.47 kB +861 B (+24%) 🚨
ℹ️ View Unchanged
Filename Size Change
dotcom-rendering/dist/1076.web.********************.js 3.08 kB 0 B
dotcom-rendering/dist/1149.web.********************.js 2.92 kB 0 B
dotcom-rendering/dist/1226.web.********************.js 3.66 kB 0 B
dotcom-rendering/dist/1244.web.********************.js 865 B 0 B
dotcom-rendering/dist/1244.web.legacy.********************.js 870 B 0 B
dotcom-rendering/dist/1291.web.legacy.********************.js 4.5 kB 0 B
dotcom-rendering/dist/1294.web.********************.js 5.36 kB 0 B
dotcom-rendering/dist/1406.web.********************.js 5.09 kB 0 B
dotcom-rendering/dist/1465.web.********************.js 3.32 kB 0 B
dotcom-rendering/dist/1486.web.********************.js 744 B 0 B
dotcom-rendering/dist/1486.web.legacy.********************.js 749 B 0 B
dotcom-rendering/dist/1521.web.********************.js 5.48 kB 0 B
dotcom-rendering/dist/1659.web.********************.js 518 B 0 B
dotcom-rendering/dist/182.web.legacy.********************.js 11.8 kB 0 B
dotcom-rendering/dist/1840.web.legacy.********************.js 3.94 kB 0 B
dotcom-rendering/dist/1848.web.********************.js 644 B 0 B
dotcom-rendering/dist/1848.web.legacy.********************.js 649 B 0 B
dotcom-rendering/dist/1973.web.legacy.********************.js 4.88 kB 0 B
dotcom-rendering/dist/1987.web.********************.js 3.12 kB 0 B
dotcom-rendering/dist/1997.web.********************.js 744 B 0 B
dotcom-rendering/dist/1997.web.legacy.********************.js 749 B 0 B
dotcom-rendering/dist/2071.web.********************.js 745 B 0 B
dotcom-rendering/dist/2071.web.legacy.********************.js 750 B 0 B
dotcom-rendering/dist/21.web.********************.js 758 B 0 B
dotcom-rendering/dist/21.web.legacy.********************.js 763 B 0 B
dotcom-rendering/dist/2113.web.********************.js 29.6 kB 0 B
dotcom-rendering/dist/2126.web.********************.js 884 B 0 B
dotcom-rendering/dist/2126.web.legacy.********************.js 887 B 0 B
dotcom-rendering/dist/2131.web.legacy.********************.js 444 B 0 B
dotcom-rendering/dist/2133.web.********************.js 4.46 kB 0 B
dotcom-rendering/dist/2201.web.********************.js 778 B 0 B
dotcom-rendering/dist/2201.web.legacy.********************.js 779 B 0 B
dotcom-rendering/dist/2228.web.********************.js 899 B 0 B
dotcom-rendering/dist/2228.web.legacy.********************.js 903 B 0 B
dotcom-rendering/dist/2240.web.legacy.********************.js 3.24 kB 0 B
dotcom-rendering/dist/2299.web.legacy.********************.js 8.45 kB 0 B
dotcom-rendering/dist/2339.web.********************.js 778 B 0 B
dotcom-rendering/dist/2339.web.legacy.********************.js 780 B 0 B
dotcom-rendering/dist/2351.web.********************.js 3.34 kB 0 B
dotcom-rendering/dist/2467.web.********************.js 2.08 kB 0 B
dotcom-rendering/dist/2494.web.********************.js 774 B 0 B
dotcom-rendering/dist/2494.web.legacy.********************.js 782 B 0 B
dotcom-rendering/dist/2499.web.legacy.********************.js 2.26 kB 0 B
dotcom-rendering/dist/2546.web.********************.js 3.72 kB 0 B
dotcom-rendering/dist/2679.web.legacy.********************.js 3.88 kB 0 B
dotcom-rendering/dist/275.web.********************.js 697 B 0 B
dotcom-rendering/dist/275.web.legacy.********************.js 702 B 0 B
dotcom-rendering/dist/2860.web.legacy.********************.js 7.98 kB 0 B
dotcom-rendering/dist/2949.web.********************.js 4.24 kB 0 B
dotcom-rendering/dist/3024.web.********************.js 621 B 0 B
dotcom-rendering/dist/3024.web.legacy.********************.js 626 B 0 B
dotcom-rendering/dist/3146.web.********************.js 6.53 kB 0 B
dotcom-rendering/dist/3358.web.********************.js 637 B 0 B
dotcom-rendering/dist/3358.web.legacy.********************.js 642 B 0 B
dotcom-rendering/dist/356.web.********************.js 826 B 0 B
dotcom-rendering/dist/356.web.legacy.********************.js 832 B 0 B
dotcom-rendering/dist/3612.web.legacy.********************.js 4.45 kB 0 B
dotcom-rendering/dist/3653.web.legacy.********************.js 4.13 kB 0 B
dotcom-rendering/dist/3737.web.********************.js 3.67 kB 0 B
dotcom-rendering/dist/3960.web.********************.js 619 B 0 B
dotcom-rendering/dist/3960.web.legacy.********************.js 624 B 0 B
dotcom-rendering/dist/3968.web.********************.js 3.79 kB 0 B
dotcom-rendering/dist/4113.web.********************.js 757 B 0 B
dotcom-rendering/dist/4113.web.legacy.********************.js 762 B 0 B
dotcom-rendering/dist/4164.web.legacy.********************.js 600 B 0 B
dotcom-rendering/dist/421.web.********************.js 2.12 kB 0 B
dotcom-rendering/dist/4246.web.legacy.********************.js 5.72 kB 0 B
dotcom-rendering/dist/4306.web.********************.js 6.46 kB 0 B
dotcom-rendering/dist/4430.web.legacy.********************.js 3.21 kB 0 B
dotcom-rendering/dist/4591.web.********************.js 404 B 0 B
dotcom-rendering/dist/4593.web.********************.js 1.74 kB 0 B
dotcom-rendering/dist/4734.web.********************.js 759 B 0 B
dotcom-rendering/dist/4734.web.legacy.********************.js 763 B 0 B
dotcom-rendering/dist/4740.web.legacy.********************.js 3.8 kB 0 B
dotcom-rendering/dist/480.web.********************.js 524 B 0 B
dotcom-rendering/dist/4865.web.legacy.********************.js 3.74 kB 0 B
dotcom-rendering/dist/4896.web.********************.js 2.17 kB 0 B
dotcom-rendering/dist/4935.web.legacy.********************.js 2.86 kB 0 B
dotcom-rendering/dist/5021.web.********************.js 963 B 0 B
dotcom-rendering/dist/5021.web.legacy.********************.js 969 B 0 B
dotcom-rendering/dist/5071.web.********************.js 941 B 0 B
dotcom-rendering/dist/5071.web.legacy.********************.js 946 B 0 B
dotcom-rendering/dist/5210.web.********************.js 303 B 0 B
dotcom-rendering/dist/5211.web.********************.js 2.92 kB 0 B
dotcom-rendering/dist/5225.web.********************.js 6.67 kB 0 B
dotcom-rendering/dist/5474.web.********************.js 620 B 0 B
dotcom-rendering/dist/5474.web.legacy.********************.js 625 B 0 B
dotcom-rendering/dist/5688.web.********************.js 3.79 kB 0 B
dotcom-rendering/dist/5873.web.legacy.********************.js 3.4 kB 0 B
dotcom-rendering/dist/5974.web.********************.js 742 B 0 B
dotcom-rendering/dist/5974.web.legacy.********************.js 747 B 0 B
dotcom-rendering/dist/6118.web.********************.js 682 B 0 B
dotcom-rendering/dist/6118.web.legacy.********************.js 687 B 0 B
dotcom-rendering/dist/6126.web.********************.js 2.23 kB 0 B
dotcom-rendering/dist/631.web.legacy.********************.js 4.76 kB 0 B
dotcom-rendering/dist/640.web.********************.js 711 B 0 B
dotcom-rendering/dist/640.web.legacy.********************.js 716 B 0 B
dotcom-rendering/dist/6437.web.********************.js 867 B 0 B
dotcom-rendering/dist/6437.web.legacy.********************.js 872 B 0 B
dotcom-rendering/dist/6527.web.legacy.********************.js 3.54 kB 0 B
dotcom-rendering/dist/6534.web.********************.js 575 B 0 B
dotcom-rendering/dist/6534.web.legacy.********************.js 580 B 0 B
dotcom-rendering/dist/6541.web.********************.js 811 B 0 B
dotcom-rendering/dist/6541.web.legacy.********************.js 817 B 0 B
dotcom-rendering/dist/657.web.********************.js 2.46 kB 0 B
dotcom-rendering/dist/6623.web.********************.js 3.65 kB 0 B
dotcom-rendering/dist/6980.web.legacy.********************.js 2.86 kB 0 B
dotcom-rendering/dist/700.web.legacy.********************.js 3.67 kB 0 B
dotcom-rendering/dist/7133.web.********************.js 699 B 0 B
dotcom-rendering/dist/7133.web.legacy.********************.js 704 B 0 B
dotcom-rendering/dist/7149.web.legacy.********************.js 31.5 kB 0 B
dotcom-rendering/dist/7305.web.********************.js 886 B 0 B
dotcom-rendering/dist/7305.web.legacy.********************.js 892 B 0 B
dotcom-rendering/dist/7401.web.********************.js 689 B 0 B
dotcom-rendering/dist/7401.web.legacy.********************.js 694 B 0 B
dotcom-rendering/dist/7480.web.legacy.********************.js 1.09 kB 0 B
dotcom-rendering/dist/7533.web.********************.js 5.03 kB 0 B
dotcom-rendering/dist/7650.web.********************.js 23 kB 0 B
dotcom-rendering/dist/7650.web.legacy.********************.js 23 kB 0 B
dotcom-rendering/dist/7688.web.********************.js 814 B 0 B
dotcom-rendering/dist/7688.web.legacy.********************.js 819 B 0 B
dotcom-rendering/dist/786.web.********************.js 477 B 0 B
dotcom-rendering/dist/786.web.legacy.********************.js 482 B 0 B
dotcom-rendering/dist/7874.web.legacy.********************.js 4.08 kB 0 B
dotcom-rendering/dist/7921.web.legacy.********************.js 3.36 kB 0 B
dotcom-rendering/dist/7923.web.legacy.********************.js 5.64 kB 0 B
dotcom-rendering/dist/8085.web.********************.js 2.59 kB 0 B
dotcom-rendering/dist/8085.web.legacy.********************.js 2.6 kB 0 B
dotcom-rendering/dist/8112.web.********************.js 3.37 kB 0 B
dotcom-rendering/dist/8165.web.********************.js 926 B 0 B
dotcom-rendering/dist/8165.web.legacy.********************.js 931 B 0 B
dotcom-rendering/dist/8170.web.********************.js 490 B 0 B
dotcom-rendering/dist/8170.web.legacy.********************.js 495 B 0 B
dotcom-rendering/dist/818.web.********************.js 2.85 kB 0 B
dotcom-rendering/dist/8268.web.********************.js 5.65 kB -42 B (-1%)
dotcom-rendering/dist/8341.web.legacy.********************.js 5.12 kB 0 B
dotcom-rendering/dist/8411.web.legacy.********************.js 5.7 kB 0 B
dotcom-rendering/dist/8447.web.********************.js 963 B 0 B
dotcom-rendering/dist/8447.web.legacy.********************.js 969 B 0 B
dotcom-rendering/dist/8476.web.legacy.********************.js 6.21 kB 0 B
dotcom-rendering/dist/8505.web.********************.js 556 B 0 B
dotcom-rendering/dist/8505.web.legacy.********************.js 561 B 0 B
dotcom-rendering/dist/8537.web.legacy.********************.js 5.35 kB 0 B
dotcom-rendering/dist/8555.web.********************.js 690 B 0 B
dotcom-rendering/dist/8555.web.legacy.********************.js 695 B 0 B
dotcom-rendering/dist/8622.web.********************.js 858 B 0 B
dotcom-rendering/dist/8622.web.legacy.********************.js 863 B 0 B
dotcom-rendering/dist/8638.web.********************.js 831 B 0 B
dotcom-rendering/dist/8638.web.legacy.********************.js 839 B 0 B
dotcom-rendering/dist/8732.web.legacy.********************.js 3.77 kB 0 B
dotcom-rendering/dist/8739.web.legacy.********************.js 5.39 kB 0 B
dotcom-rendering/dist/8783.web.legacy.********************.js 11.2 kB 0 B
dotcom-rendering/dist/8950.web.legacy.********************.js 3.64 kB 0 B
dotcom-rendering/dist/911.web.legacy.********************.js 1.18 kB 0 B
dotcom-rendering/dist/9422.web.********************.js 614 B 0 B
dotcom-rendering/dist/9490.web.********************.js 825 B 0 B
dotcom-rendering/dist/9490.web.legacy.********************.js 831 B 0 B
dotcom-rendering/dist/9542.web.legacy.********************.js 7.25 kB 0 B
dotcom-rendering/dist/9568.web.********************.js 5.37 kB 0 B
dotcom-rendering/dist/9597.web.********************.js 3.25 kB 0 B
dotcom-rendering/dist/9714.web.legacy.********************.js 5.7 kB 0 B
dotcom-rendering/dist/9724.web.********************.js 5.02 kB 0 B
dotcom-rendering/dist/9839.web.legacy.********************.js 1.08 kB 0 B
dotcom-rendering/dist/AdPortals-importable.web.legacy.********************.js 5.18 kB 0 B
dotcom-rendering/dist/AlreadyVisited-importable.web.********************.js 412 B 0 B
dotcom-rendering/dist/AlreadyVisited-importable.web.legacy.********************.js 417 B 0 B
dotcom-rendering/dist/AppEmailSignUp-importable.web.********************.js 7.21 kB 0 B
dotcom-rendering/dist/AppEmailSignUp-importable.web.legacy.********************.js 7.84 kB 0 B
dotcom-rendering/dist/AppsEpic-importable.web.********************.js 3.96 kB 0 B
dotcom-rendering/dist/AppsEpic-importable.web.legacy.********************.js 5.6 kB 0 B
dotcom-rendering/dist/AppsFooter-importable.web.********************.js 4.22 kB 0 B
dotcom-rendering/dist/AppsLightboxImage-importable.web.********************.js 2.82 kB 0 B
dotcom-rendering/dist/AppsLightboxImage-importable.web.legacy.********************.js 5.01 kB 0 B
dotcom-rendering/dist/AudioAtomWrapper-importable.web.********************.js 3.27 kB 0 B
dotcom-rendering/dist/AudioAtomWrapper-importable.web.legacy.********************.js 3.12 kB 0 B
dotcom-rendering/dist/AustralianTerritorySwitcher-importable.web.********************.js 4.86 kB 0 B
dotcom-rendering/dist/AustralianTerritorySwitcher-importable.web.legacy.********************.js 5.65 kB 0 B
dotcom-rendering/dist/Branding-importable.web.********************.js 2.2 kB 0 B
dotcom-rendering/dist/Branding-importable.web.legacy.********************.js 1.97 kB 0 B
dotcom-rendering/dist/braze-web-sdk-core.web.********************.js 36.9 kB 0 B
dotcom-rendering/dist/braze-web-sdk-core.web.legacy.********************.js 36.9 kB 0 B
dotcom-rendering/dist/BrazeMessaging-importable.web.********************.js 5.5 kB 0 B
dotcom-rendering/dist/BrazeMessaging-importable.web.legacy.********************.js 6.16 kB 0 B
dotcom-rendering/dist/CalloutBlockComponent-importable.web.********************.js 6.47 kB 0 B
dotcom-rendering/dist/CalloutBlockComponent-importable.web.legacy.********************.js 6.81 kB 0 B
dotcom-rendering/dist/CalloutEmbedBlockComponent-importable.web.********************.js 5.82 kB 0 B
dotcom-rendering/dist/CalloutEmbedBlockComponent-importable.web.legacy.********************.js 5.11 kB 0 B
dotcom-rendering/dist/CardCommentCount-importable.web.********************.js 2.69 kB 0 B
dotcom-rendering/dist/CardCommentCount-importable.web.legacy.********************.js 3.11 kB 0 B
dotcom-rendering/dist/Carousel-importable.web.legacy.********************.js 5.14 kB 0 B
dotcom-rendering/dist/CarouselForNewsletters-importable.web.********************.js 5.6 kB 0 B
dotcom-rendering/dist/CarouselForNewsletters-importable.web.legacy.********************.js 4.82 kB 0 B
dotcom-rendering/dist/ChartAtom-importable.web.********************.js 500 B 0 B
dotcom-rendering/dist/ChartAtom-importable.web.legacy.********************.js 412 B 0 B
dotcom-rendering/dist/CommentCount-importable.web.********************.js 2.85 kB 0 B
dotcom-rendering/dist/CommentCount-importable.web.legacy.********************.js 3.29 kB 0 B
dotcom-rendering/dist/DiscussionContainer-importable.web.********************.js 23.9 kB 0 B
dotcom-rendering/dist/DiscussionContainer-importable.web.legacy.********************.js 21.4 kB 0 B
dotcom-rendering/dist/DiscussionMeta-importable.web.********************.js 3.72 kB 0 B
dotcom-rendering/dist/DiscussionMeta-importable.web.legacy.********************.js 3.76 kB 0 B
dotcom-rendering/dist/DocumentBlockComponent-importable.web.********************.js 1.34 kB 0 B
dotcom-rendering/dist/EmbedBlockComponent-importable.web.********************.js 1.49 kB 0 B
dotcom-rendering/dist/EnhancePinnedPost-importable.web.********************.js 1.95 kB 0 B
dotcom-rendering/dist/EnhancePinnedPost-importable.web.legacy.********************.js 1.99 kB 0 B
dotcom-rendering/dist/FetchOnwardsData-importable.web.********************.js 2.5 kB 0 B
dotcom-rendering/dist/FilterKeyEventsToggle-importable.web.********************.js 3.31 kB 0 B
dotcom-rendering/dist/FilterKeyEventsToggle-importable.web.legacy.********************.js 2.82 kB 0 B
dotcom-rendering/dist/FocusStyles-importable.web.********************.js 607 B 0 B
dotcom-rendering/dist/FocusStyles-importable.web.legacy.********************.js 618 B 0 B
dotcom-rendering/dist/FollowWrapper-importable.web.********************.js 3.67 kB 0 B
dotcom-rendering/dist/FollowWrapper-importable.web.legacy.********************.js 860 B 0 B
dotcom-rendering/dist/FooterLabel-importable.web.********************.js 336 B 0 B
dotcom-rendering/dist/FooterLabel-importable.web.legacy.********************.js 370 B 0 B
dotcom-rendering/dist/frameworks.web.********************.js 20.8 kB 0 B
dotcom-rendering/dist/frameworks.web.legacy.********************.js 20.8 kB 0 B
dotcom-rendering/dist/GetCricketScoreboard-importable.web.********************.js 3.26 kB 0 B
dotcom-rendering/dist/GetCricketScoreboard-importable.web.legacy.********************.js 3.18 kB 0 B
dotcom-rendering/dist/GetMatchNav-importable.web.********************.js 12.6 kB 0 B
dotcom-rendering/dist/GetMatchNav-importable.web.legacy.********************.js 7.23 kB 0 B
dotcom-rendering/dist/GetMatchStats-importable.web.********************.js 355 B 0 B
dotcom-rendering/dist/GetMatchStats-importable.web.legacy.********************.js 1.36 kB 0 B
dotcom-rendering/dist/GetMatchTabs-importable.web.********************.js 2.31 kB 0 B
dotcom-rendering/dist/GetMatchTabs-importable.web.legacy.********************.js 2.23 kB 0 B
dotcom-rendering/dist/guardian-braze-components-banner.web.********************.js 13.4 kB 0 B
dotcom-rendering/dist/guardian-braze-components-banner.web.legacy.********************.js 12.5 kB 0 B
dotcom-rendering/dist/guardian-braze-components-end-of-article.web.********************.js 9 kB 0 B
dotcom-rendering/dist/guardian-braze-components-end-of-article.web.legacy.********************.js 10.8 kB 0 B
dotcom-rendering/dist/GuideAtomWrapper-importable.web.********************.js 790 B 0 B
dotcom-rendering/dist/GuideAtomWrapper-importable.web.legacy.********************.js 833 B 0 B
dotcom-rendering/dist/HeaderTopBar-importable.web.********************.js 10.9 kB 0 B
dotcom-rendering/dist/HeaderTopBar-importable.web.legacy.********************.js 10.8 kB 0 B
dotcom-rendering/dist/index.web.********************.js 37.8 kB 0 B
dotcom-rendering/dist/index.web.legacy.********************.js 44.4 kB 0 B
dotcom-rendering/dist/InstagramBlockComponent-importable.web.********************.js 941 B 0 B
dotcom-rendering/dist/InstagramBlockComponent-importable.web.legacy.********************.js 3.35 kB 0 B
dotcom-rendering/dist/InteractiveBlockComponent-importable.web.********************.js 5.82 kB 0 B
dotcom-rendering/dist/InteractiveBlockComponent-importable.web.legacy.********************.js 4.44 kB 0 B
dotcom-rendering/dist/InteractiveContentsBlockComponent-importable.web.********************.js 3.79 kB 0 B
dotcom-rendering/dist/InteractiveContentsBlockComponent-importable.web.legacy.********************.js 4.07 kB 0 B
dotcom-rendering/dist/InteractiveSupportButton-importable.web.********************.js 4.16 kB 0 B
dotcom-rendering/dist/InteractiveSupportButton-importable.web.legacy.********************.js 3.46 kB 0 B
dotcom-rendering/dist/KeyEventsCarousel-importable.web.********************.js 2.78 kB 0 B
dotcom-rendering/dist/KeyEventsCarousel-importable.web.legacy.********************.js 2.56 kB 0 B
dotcom-rendering/dist/KnowledgeQuizAtom-importable.web.********************.js 3.51 kB 0 B
dotcom-rendering/dist/KnowledgeQuizAtom-importable.web.legacy.********************.js 3.73 kB 0 B
dotcom-rendering/dist/LatestLinks-importable.web.legacy.********************.js 1.28 kB 0 B
dotcom-rendering/dist/LightboxHash-importable.web.********************.js 430 B 0 B
dotcom-rendering/dist/LightboxHash-importable.web.legacy.********************.js 439 B 0 B
dotcom-rendering/dist/LightboxJavascript-importable.web.********************.js 4.39 kB 0 B
dotcom-rendering/dist/LightboxJavascript-importable.web.legacy.********************.js 6.07 kB 0 B
dotcom-rendering/dist/LiveBlogEpic-importable.web.********************.js 4.96 kB 0 B
dotcom-rendering/dist/LiveBlogEpic-importable.web.legacy.********************.js 5.1 kB 0 B
dotcom-rendering/dist/Liveness-importable.web.********************.js 3.34 kB 0 B
dotcom-rendering/dist/Liveness-importable.web.legacy.********************.js 7.86 kB 0 B
dotcom-rendering/dist/ManyNewsletterSignUp-importable.web.********************.js 4.98 kB 0 B
dotcom-rendering/dist/ManyNewsletterSignUp-importable.web.legacy.********************.js 7.28 kB 0 B
dotcom-rendering/dist/MapEmbedBlockComponent-importable.web.********************.js 3.09 kB 0 B
dotcom-rendering/dist/Metrics-importable.web.********************.js 2.56 kB 0 B
dotcom-rendering/dist/Metrics-importable.web.legacy.********************.js 2.8 kB 0 B
dotcom-rendering/dist/MostViewedFooter-importable.web.********************.js 5.38 kB -3 B (0%)
dotcom-rendering/dist/MostViewedFooter-importable.web.legacy.********************.js 4.6 kB 0 B
dotcom-rendering/dist/MostViewedFooterData-importable.web.********************.js 7.7 kB 0 B
dotcom-rendering/dist/MostViewedRightWrapper-importable.web.********************.js 3.9 kB 0 B
dotcom-rendering/dist/OnwardsUpper-importable.web.********************.js 4.17 kB 0 B
dotcom-rendering/dist/OnwardsUpper-importable.web.legacy.********************.js 4.57 kB 0 B
dotcom-rendering/dist/PersonalityQuizAtom-importable.web.********************.js 3.65 kB 0 B
dotcom-rendering/dist/PersonalityQuizAtom-importable.web.legacy.********************.js 3.9 kB 0 B
dotcom-rendering/dist/ProfileAtom-importable.web.********************.js 547 B 0 B
dotcom-rendering/dist/ProfileAtom-importable.web.legacy.********************.js 578 B 0 B
dotcom-rendering/dist/ProfileAtomWrapper-importable.web.********************.js 810 B 0 B
dotcom-rendering/dist/ProfileAtomWrapper-importable.web.legacy.********************.js 857 B 0 B
dotcom-rendering/dist/PulsingDot-importable.web.********************.js 744 B 0 B
dotcom-rendering/dist/PulsingDot-importable.web.legacy.********************.js 731 B 0 B
dotcom-rendering/dist/QandaAtom-importable.web.********************.js 542 B 0 B
dotcom-rendering/dist/QandaAtom-importable.web.legacy.********************.js 574 B 0 B
dotcom-rendering/dist/ReaderRevenueDev-importable.web.********************.js 466 B 0 B
dotcom-rendering/dist/ReaderRevenueDev-importable.web.legacy.********************.js 477 B 0 B
dotcom-rendering/dist/readerRevenueDevUtils.web.********************.js 3.01 kB 0 B
dotcom-rendering/dist/readerRevenueDevUtils.web.legacy.********************.js 3.29 kB 0 B
dotcom-rendering/dist/ReaderRevenueLinks-importable.web.********************.js 4.95 kB 0 B
dotcom-rendering/dist/ReaderRevenueLinks-importable.web.legacy.********************.js 5.15 kB 0 B
dotcom-rendering/dist/RecipeMultiplier-importable.web.********************.js 3.17 kB 0 B
dotcom-rendering/dist/RecipeMultiplier-importable.web.legacy.********************.js 5.67 kB 0 B
dotcom-rendering/dist/RelativeTime-importable.web.********************.js 1.92 kB 0 B
dotcom-rendering/dist/RelativeTime-importable.web.legacy.********************.js 1.98 kB 0 B
dotcom-rendering/dist/RichLinkComponent-importable.web.legacy.********************.js 5.05 kB 0 B
dotcom-rendering/dist/SecureSignupIframe-importable.web.********************.js 4.93 kB 0 B
dotcom-rendering/dist/SecureSignupIframe-importable.web.legacy.********************.js 4.72 kB 0 B
dotcom-rendering/dist/SendAMessage-importable.web.********************.js 4.38 kB 0 B
dotcom-rendering/dist/SendAMessage-importable.web.legacy.********************.js 7.07 kB 0 B
dotcom-rendering/dist/SendTargetingParams-importable.web.********************.js 2.08 kB 0 B
dotcom-rendering/dist/SendTargetingParams-importable.web.legacy.********************.js 2.93 kB 0 B
dotcom-rendering/dist/sentry.web.********************.js 773 B 0 B
dotcom-rendering/dist/sentry.web.legacy.********************.js 766 B 0 B
dotcom-rendering/dist/SetABTests-importable.web.********************.js 4.53 kB 0 B
dotcom-rendering/dist/SetABTests-importable.web.legacy.********************.js 4.8 kB 0 B
dotcom-rendering/dist/SetAdTargeting-importable.web.********************.js 514 B 0 B
dotcom-rendering/dist/SetAdTargeting-importable.web.legacy.********************.js 523 B 0 B
dotcom-rendering/dist/shimport.web.********************.js 2.78 kB 0 B
dotcom-rendering/dist/shimport.web.legacy.********************.js 2.79 kB 0 B
dotcom-rendering/dist/ShowHideContainers-importable.web.********************.js 642 B 0 B
dotcom-rendering/dist/ShowHideContainers-importable.web.legacy.********************.js 1.22 kB 0 B
dotcom-rendering/dist/ShowMore-importable.web.********************.js 5.59 kB 0 B
dotcom-rendering/dist/SignInGateMain.web.********************.js 3.86 kB 0 B
dotcom-rendering/dist/SignInGateMain.web.legacy.********************.js 2.63 kB 0 B
dotcom-rendering/dist/SignInGateMainCheckoutComplete.web.********************.js 4.93 kB 0 B
dotcom-rendering/dist/SignInGateMainCheckoutComplete.web.legacy.********************.js 3.59 kB 0 B
dotcom-rendering/dist/SignInGateSelector-importable.web.********************.js 5.66 kB 0 B
dotcom-rendering/dist/SignInGateSelector-importable.web.legacy.********************.js 6.05 kB 0 B
dotcom-rendering/dist/SlotBodyEnd-importable.web.********************.js 6.38 kB 0 B
dotcom-rendering/dist/SlotBodyEnd-importable.web.legacy.********************.js 6.15 kB 0 B
dotcom-rendering/dist/Snow-importable.web.********************.js 3.02 kB 0 B
dotcom-rendering/dist/Snow-importable.web.legacy.********************.js 3.33 kB 0 B
dotcom-rendering/dist/SpotifyBlockComponent-importable.web.********************.js 2.95 kB 0 B
dotcom-rendering/dist/SpotifyBlockComponent-importable.web.legacy.********************.js 4.39 kB 0 B
dotcom-rendering/dist/StickyBottomBanner-importable.web.********************.js 5.77 kB 0 B
dotcom-rendering/dist/StickyBottomBanner-importable.web.legacy.********************.js 6.6 kB 0 B
dotcom-rendering/dist/SubNav-importable.web.********************.js 2.36 kB 0 B
dotcom-rendering/dist/SubNav-importable.web.legacy.********************.js 2.07 kB 0 B
dotcom-rendering/dist/SupportTheG-importable.web.********************.js 5.06 kB 0 B
dotcom-rendering/dist/SupportTheG-importable.web.legacy.********************.js 5.26 kB 0 B
dotcom-rendering/dist/TimelineAtom-importable.web.********************.js 1.22 kB 0 B
dotcom-rendering/dist/TimelineAtom-importable.web.legacy.********************.js 1.06 kB 0 B
dotcom-rendering/dist/TweetBlockComponent-importable.web.********************.js 1.01 kB 0 B
dotcom-rendering/dist/TweetBlockComponent-importable.web.legacy.********************.js 791 B 0 B
dotcom-rendering/dist/UnsafeEmbedBlockComponent-importable.web.********************.js 953 B 0 B
dotcom-rendering/dist/VideoFacebookBlockComponent-importable.web.********************.js 3.1 kB 0 B
dotcom-rendering/dist/VineBlockComponent-importable.web.********************.js 803 B 0 B
dotcom-rendering/dist/VineBlockComponent-importable.web.legacy.********************.js 2.56 kB 0 B
dotcom-rendering/dist/WeatherWrapper-importable.web.********************.js 5.42 kB 0 B
dotcom-rendering/dist/WeatherWrapper-importable.web.legacy.********************.js 4.9 kB 0 B
dotcom-rendering/dist/YoutubeBlockComponent-importable.web.********************.js 3.84 kB 0 B
dotcom-rendering/dist/YoutubeBlockComponent-importable.web.legacy.********************.js 4.07 kB 0 B

compressed-size-action

@mxdvl mxdvl marked this pull request as ready for review October 23, 2023 09:17
@mxdvl mxdvl requested a review from a team as a code owner October 23, 2023 09:17
@mxdvl mxdvl added the run_chromatic Runs chromatic when label is applied label Oct 23, 2023
@mxdvl mxdvl force-pushed the darkmode/avatar branch 2 times, most recently from dd13d46 to 6ad6a66 Compare October 23, 2023 09:36
@mxdvl mxdvl changed the title Darkmode – Avatar & DiscussionAvatar Darkmode – Avatar Oct 23, 2023
Copy link
Contributor

@cemms1 cemms1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can see there's been a refactor to take format out of <Avatar> into a wrapper instead, though feel this makes it slightly tricky to see the changes on GitHub.

Main thing though is this naming convention stuff as I feel it's best to be consistent whatever we do - do you have strong opinions? Could take it to the team

Comment on lines 242 to 262
'--background-avatar': {
light: backgroundAvatarLight,
dark: backgroundAvatarDark,
},
'--background-article': {
light: backgroundArticleLight,
dark: backgroundArticleDark,
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the examples for headline have a different naming convention to these: --background-avatar vs --avatar-background.
I think I prefer the original style ie. --avatar-background but maybe we should confirm as a team which way we want to go. Having a mixture is a bit confusing

Copy link
Contributor Author

@mxdvl mxdvl Oct 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed the pattern established in AR of splitting specific colour functions by type such as “text”, “background”, “line”, etc.

I can see that as this approach is not nested, it may be more accurate to organise things by themes such as “star”, “avatar”, “card”, etc.

Emoji react:

  • 🎉 type (what we did in AR / DCR previously)
  • 🚀 themes (what you’re suggesting @cemms1 & @sophie-macmillan, and is growing on me)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I hadn't really thought about how to best organise all of the colours! I was mainly pointing out the naming convention. Feel like we might need a discussion about organising the palette functions in the not-too-distant-future as it's gonna get big!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naming ≈ Organising 😉

@mxdvl
Copy link
Contributor Author

mxdvl commented Oct 23, 2023

Can see there's been a refactor to take format out of <Avatar> into a wrapper instead, though feel this makes it slightly tricky to see the changes on GitHub.

This is a necessity! Avatar is no longer receiving a format, it’s just coming from the ambient CSS custom properties. Is there anything I could change to make it easier to review?

@mxdvl mxdvl changed the title Darkmode – Avatar Darkmode – Avatar 👤 Oct 23, 2023
@mxdvl mxdvl changed the base branch from main to mxdvl/format-boundary October 24, 2023 16:16
@mxdvl mxdvl force-pushed the mxdvl/format-boundary branch from 6d5b97e to 7d96ead Compare October 25, 2023 08:19
Copy link
Contributor

@sophie-macmillan sophie-macmillan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the chromatic diffs it looks like the introduction of FormatBoundary has broken the card styling. They should be full height, but the additional div has broken that!

@mxdvl mxdvl force-pushed the darkmode/avatar branch 2 times, most recently from bb71816 to 85dad4a Compare October 25, 2023 16:09
Base automatically changed from mxdvl/format-boundary to main October 26, 2023 16:29
Copy link
Contributor

@sophie-macmillan sophie-macmillan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes addressed thanks!

@mxdvl mxdvl merged commit f9a96a4 into main Oct 27, 2023
22 checks passed
@mxdvl mxdvl deleted the darkmode/avatar branch October 27, 2023 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotcom-rendering run_chromatic Runs chromatic when label is applied
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support darkmode - Avatar
3 participants