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: removing opacity from deprecated popover overlay #23102

Merged
merged 3 commits into from Feb 22, 2024

Conversation

georgewrmarshall
Copy link
Contributor

@georgewrmarshall georgewrmarshall commented Feb 21, 2024

Description

This PR updates the deprecated popover(modal) overlay by removing the CSS opacity property and relying solely on the CSS design token variable to handle the overlay opacity. This change aims to enhance the visual hierarchy of modals across both light and dark modes by making the overlay darker, thus improving focus on the modal content.

  • Removed the CSS opacity property from the modal overlay styling.
  • Adjusted the modal overlay to utilize the opacity defined in the CSS design token variable, ensuring consistency and improved visual hierarchy.

Related issues

Fixes: N/A https://consensys.slack.com/archives/C0354T27M5M/p1708550530267829?thread_ts=1708546286.489159&cid=C0354T27M5M

Manual testing steps

  1. Open the application and trigger a modal to appear.
  2. Observe the modal overlay in both light and dark modes.
  3. Verify that the overlay is appropriately darker, enhancing the focus on the modal content.

Screenshots/Recordings

Before

Screenshot 2024-02-22 at 10 00 00 AM Screenshot 2024-02-22 at 10 00 36 AM

After

Screenshot 2024-02-22 at 9 59 19 AM Screenshot 2024-02-22 at 10 01 06 AM

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues.
  • I've included manual testing steps.
  • I've included screenshots/recordings if applicable.
  • I’ve included tests if applicable.
  • I’ve documented my code using JSDoc format if applicable.
  • I’ve applied the right labels on the PR.
  • I’ve properly set the pull request status to "ready for review".

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g., pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@georgewrmarshall georgewrmarshall added team-design-system All issues relating to design system in Extension needs-ux-ds-review labels Feb 21, 2024
@georgewrmarshall georgewrmarshall self-assigned this Feb 21, 2024
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

Comment on lines -34 to -35
background: var(--color-overlay-alternative);
opacity: 0.2;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

CSS variable already has opacity so opacity is not needed here

@georgewrmarshall georgewrmarshall marked this pull request as ready for review February 21, 2024 21:10
@georgewrmarshall georgewrmarshall requested a review from a team as a code owner February 21, 2024 21:10
@metamaskbot
Copy link
Collaborator

Builds ready [901c8c5]
Page Load Metrics (2127 ± 166 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint8470322914067
domContentLoaded10101392211
load158327212127346166
domInteractive10101382211
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@georgewrmarshall georgewrmarshall merged commit b46ff03 into develop Feb 22, 2024
65 of 66 checks passed
@georgewrmarshall georgewrmarshall deleted the fix/popover-overlay branch February 22, 2024 03:09
@github-actions github-actions bot locked and limited conversation to collaborators Feb 22, 2024
@metamaskbot metamaskbot added the release-11.12.0 Issue or pull request that will be included in release 11.12.0 label Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.12.0 Issue or pull request that will be included in release 11.12.0 team-design-system All issues relating to design system in Extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants