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(NotificationsPanel): remove hard-coded dark theme #6862

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

paul-balchin-ibm
Copy link
Contributor

@paul-balchin-ibm paul-balchin-ibm commented Feb 7, 2025

Closes #5259

NotificationsPanel now inherits from parent theme.

What did you change?

packages/ibm-products-styles/src/components/NotificationsPanel/_notifications-panel.scss

How did you test and verify your work?

  • Storybook

Themed output

The first notification in each screenshot shows the hover state when the mouse is over the close ("X") button.

white g10 g90 g100
image image image image

Empty state

white g10 g90 g100
image image image image

@paul-balchin-ibm paul-balchin-ibm self-assigned this Feb 7, 2025
@paul-balchin-ibm paul-balchin-ibm requested a review from a team as a code owner February 7, 2025 16:27
@paul-balchin-ibm paul-balchin-ibm requested review from davidmenendez and matthewgallo and removed request for a team February 7, 2025 16:27
Copy link

netlify bot commented Feb 7, 2025

Deploy Preview for carbon-for-ibm-products ready!

Name Link
🔨 Latest commit 4ac9998
🔍 Latest deploy log https://app.netlify.com/sites/carbon-for-ibm-products/deploys/67ab45fb24dc1f0008e8780e
😎 Deploy Preview https://deploy-preview-6862--carbon-for-ibm-products.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Feb 7, 2025

Deploy Preview for ibm-products-web-components ready!

Name Link
🔨 Latest commit 4ac9998
🔍 Latest deploy log https://app.netlify.com/sites/ibm-products-web-components/deploys/67ab45fb9bfe6d0007103dfd
😎 Deploy Preview https://deploy-preview-6862--ibm-products-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Feb 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.51%. Comparing base (e26d6dc) to head (4ac9998).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6862   +/-   ##
=======================================
  Coverage   81.51%   81.51%           
=======================================
  Files         399      399           
  Lines       12975    12976    +1     
  Branches     4268     4269    +1     
=======================================
+ Hits        10576    10578    +2     
+ Misses       2399     2398    -1     
Components Coverage Δ
ibm-products ∅ <ø> (∅)
ibm-products-web-components ∅ <ø> (∅)

@paul-balchin-ibm paul-balchin-ibm added the needs: design opinion Design question needs opinion from designer label Feb 7, 2025
@elycheea elycheea requested a review from a team February 7, 2025 16:52
@elycheea
Copy link
Contributor

Noticed some small things when I was posting to the team channel for design review —

  1. Missing borders on the panel (compare to the switcher). Probably also should still have a shadow since it’s a floating element?
  2. Empty state theme! Looks like the theme is hardcoded here — might need to do a some theme detection so that it switches between light/dark since empty state component used here relies on the theme prop.

image

@paul-balchin-ibm
Copy link
Contributor Author

Great catches: added borders, drop shadow, and a themed empty state illustration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NotificationsPanel does not honor carbon theme
3 participants