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

App update modal background colors #14501

Merged
merged 5 commits into from
Feb 16, 2024

Conversation

mjhuff
Copy link
Contributor

@mjhuff mjhuff commented Feb 15, 2024

Closes RAUT-928 and RQA-2282

Overview

See Figma.

Update modal background colors to designs.

Before

Screenshot 2024-02-15 at 1 52 08 PM

After

Screenshot 2024-02-15 at 1 51 40 PM

Test Plan

  • Confirmed ODD/desktop modal backgrounds are of appropriate color & transparency.

Changelog

  • Fixed the background color on certain modals.

Risk assessment

low

@mjhuff mjhuff requested a review from a team February 15, 2024 19:29
@mjhuff mjhuff requested a review from a team as a code owner February 15, 2024 19:29
@mjhuff mjhuff requested review from TamarZanzouri and removed request for a team and TamarZanzouri February 15, 2024 19:29
Copy link

codecov bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9dc8f2d) 67.74% compared to head (96db490) 67.80%.
Report is 1 commits behind head on chore_release-7.2.0.

Additional details and impacted files

Impacted file tree graph

@@                   Coverage Diff                   @@
##           chore_release-7.2.0   #14501      +/-   ##
=======================================================
+ Coverage                67.74%   67.80%   +0.06%     
=======================================================
  Files                     2517     2517              
  Lines                    72068    72087      +19     
  Branches                  9278     9292      +14     
=======================================================
+ Hits                     48823    48880      +57     
+ Misses                   21027    21005      -22     
+ Partials                  2218     2202      -16     
Flag Coverage Δ
app 64.59% <100.00%> (+0.03%) ⬆️
components 48.90% <ø> (ø)
labware-library 41.11% <ø> (ø)
protocol-designer 37.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
app/src/molecules/BackgroundOverlay/index.tsx 100.00% <100.00%> (ø)
app/src/molecules/LegacyModal/LegacyModalShell.tsx 93.75% <ø> (ø)
app/src/molecules/LegacyModal/index.tsx 100.00% <ø> (ø)
app/src/molecules/Modal/Modal.tsx 100.00% <ø> (ø)
components/src/modals/ModalShell.tsx 75.00% <ø> (ø)

... and 2 files with indirect coverage changes

@@ -86,7 +86,7 @@ const Overlay = styled.div`
cursor: default;

@media ${RESPONSIVENESS.touchscreenMediaQuerySpecs} {
background-color: ${COLORS.grey50};
background-color: ${COLORS.black90}${COLORS.opacity60HexCode};
Copy link
Contributor

Choose a reason for hiding this comment

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

from the Figma

Suggested change
background-color: ${COLORS.black90}${COLORS.opacity60HexCode};
background-color: ${COLORS.black90}${COLORS.opacity40HexCode};

Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot 2024-02-16 at 8 07 37 AM

Copy link
Contributor Author

@mjhuff mjhuff Feb 15, 2024

Choose a reason for hiding this comment

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

I believe that refers to the desktop opacity. The figma for the ODD says the opacity is 60? (This code is under the @media ${RESPONSIVENESS.touchscreenMediaQuerySpecs}
Screenshot_20240215_184620

Copy link
Contributor

@koji koji Feb 16, 2024

Choose a reason for hiding this comment

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

The name isn't clear but LegacyModal is for Desktop and Modal is for ODD.
So I guess we don't need to use RESPONSIVENESS.touchscreenMediaQuerySpecs in LegacyModal.
Is there any components for ODD that uses LegacyModal?

If no, probably we don't need to use RESPONSIVENESS.touchscreenMediaQuerySpecs in each modal component.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for clarifying, that makes sense 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@koji I've added docstrings to clarify the different use-cases, since it's a bit confusing 📝

Copy link
Collaborator

@jerader jerader left a comment

Choose a reason for hiding this comment

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

lgtm!

@@ -19,6 +19,9 @@ export interface LegacyModalProps extends StyleProps {
footer?: React.ReactNode
}

/**
* For Desktop app use only.
Copy link
Collaborator

Choose a reason for hiding this comment

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

👏

@@ -24,6 +24,9 @@ interface ModalProps extends StyleProps {
/** see ModalHeader component for more details */
header?: ModalHeaderBaseProps
}
/**
* For ODD use only.
Copy link
Collaborator

Choose a reason for hiding this comment

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

👏

@mjhuff mjhuff merged commit 3cf91c0 into chore_release-7.2.0 Feb 16, 2024
48 checks passed
@mjhuff mjhuff deleted the app_update-modal-background-colors branch February 16, 2024 14:45
TamarZanzouri pushed a commit that referenced this pull request Feb 16, 2024
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