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

fix(react-dialog, react-drawer): Use tokens for backdrop color #33955

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

emmayjiang
Copy link
Contributor

@emmayjiang emmayjiang commented Mar 8, 2025

I was working on a project with a designer and we were discussing the backdrop color, where he showed me this colorBackgroundOverlay token that we weren't using with the dialog and drawer backdrop. I'm curious if there was a reason for this, or if the token was simply a later addition and was never added to old code.

Previous Behavior

The backdrop is implemented with a hard-coded rgba(0, 0, 0, 0.4).

New Behavior

Instead of using the hard-coded value, we use the token value colorBackgroundOverlay:
image

Related Issue(s)

  • Fixes N/A

@emmayjiang emmayjiang requested review from mltejera, a team and marcosmoura as code owners March 8, 2025 00:45
Copy link

github-actions bot commented Mar 8, 2025

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-components
react-components: entire library
1.175 MB
294.036 kB
1.175 MB
294.038 kB
24 B
2 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
69.638 kB
20.24 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
225.271 kB
65.211 kB
react-components
react-components: FluentProvider & webLightTheme
44.473 kB
14.597 kB
react-dialog
Dialog (including children components)
101.099 kB
30.381 kB
react-portal-compat
PortalCompatProvider
8.39 kB
2.64 kB
react-timepicker-compat
TimePicker
108.551 kB
36.094 kB
🤖 This report was generated against 0ee675f3875ede05eb4574e14b4761d84d7d87b8

Copy link

github-actions bot commented Mar 8, 2025

Pull request demo site: URL

@@ -0,0 +1,7 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

🕵🏾‍♀️ visual regressions to review in the fluentuiv9 Visual Regression Report

Avatar Converged 1 screenshots
Image Name Diff(in Pixels) Image Type
Avatar Converged.badgeMask - RTL.normal.chromium.png 2 Changed
Dialog 20 screenshots
Image Name Diff(in Pixels) Image Type
Dialog.default - High Contrast.chromium.png 168507 Changed
Dialog.no title & no actions - Dark Mode.chromium.png 173902 Changed
Dialog.alert - Dark Mode.chromium.png 169704 Changed
Dialog.no title & no actions - High Contrast.chromium.png 172704 Changed
Dialog.actions position start - Dark Mode.chromium.png 169704 Changed
Dialog.actions position start & position end - Dark Mode.chromium.png 169704 Changed
Dialog.nested - High Contrast.chromium.png 171336 Changed
Dialog.no title - Dark Mode.chromium.png 171433 Changed
Dialog.nested - Dark Mode.chromium.png 171282 Changed
Dialog.no actions - High Contrast.chromium.png 170976 Changed
Dialog.actions position start & position end - High Contrast.chromium.png 168507 Changed
Dialog.no actions - Dark Mode.chromium.png 172173 Changed
Dialog.actions position start - High Contrast.chromium.png 168507 Changed
Dialog.alert - High Contrast.chromium.png 168507 Changed
Dialog.default - Dark Mode.chromium.png 169704 Changed
Dialog.no title - High Contrast.chromium.png 170235 Changed
Dialog.scroll long content - High Contrast.chromium.png 124353 Changed
Dialog.scroll long content - Dark Mode.chromium.png 124315 Changed
Dialog.title custom action - Dark Mode.chromium.png 171926 Changed
Dialog.title custom action - High Contrast.chromium.png 170729 Changed
Drawer 17 screenshots
Image Name Diff(in Pixels) Image Type
Drawer.overlay drawer - High Contrast.chromium.png 156253 Changed
Drawer.default drawer - High Contrast.chromium.png 156253 Changed
Drawer.overlay drawer full - Dark Mode.chromium.png 975 Changed
Drawer.overlay drawer alert - High Contrast.chromium.png 156253 Changed
Drawer.overlay drawer large - Dark Mode.chromium.png 95551 Changed
Drawer.default drawer - Dark Mode.chromium.png 156253 Changed
Drawer.overlay drawer - Dark Mode.chromium.png 156253 Changed
Drawer.overlay drawer large - High Contrast.chromium.png 95551 Changed
Drawer.overlay drawer alert - Dark Mode.chromium.png 156253 Changed
Drawer.overlay drawer medium - Dark Mode.chromium.png 129622 Changed
Drawer.overlay drawer large content scroll - Dark Mode.chromium.png 156253 Changed
Drawer.overlay drawer large content scroll - High Contrast.chromium.png 156253 Changed
Drawer.overlay drawer medium - High Contrast.chromium.png 129622 Changed
Drawer.overlay drawer position end - Dark Mode.chromium.png 156253 Changed
Drawer.overlay drawer position end - High Contrast.chromium.png 156253 Changed
Drawer.overlay drawer position start - High Contrast.chromium.png 156253 Changed
Drawer.overlay drawer position start - Dark Mode.chromium.png 156253 Changed

@emmayjiang emmayjiang enabled auto-merge (squash) March 10, 2025 16:42
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

Successfully merging this pull request may close these issues.

3 participants