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

NotificationsPanel does not honor carbon theme #5259

Closed
2 of 4 tasks
justindm234 opened this issue May 17, 2024 · 4 comments · Fixed by #6862
Closed
2 of 4 tasks

NotificationsPanel does not honor carbon theme #5259

justindm234 opened this issue May 17, 2024 · 4 comments · Fixed by #6862
Assignees
Milestone

Comments

@justindm234
Copy link

justindm234 commented May 17, 2024

Package

Carbon for IBM Products

Description

The user interface for my product supports multiple carbon themes (g100 and g10) with UI Shell HeaderPanels using g90 and white themes. We are hoping to include the c4p NotificationsPanel in our UI. Unfortunately, the NotificationsPanel enforces the g100 theme, which does not align with our other HeaderPanels.

Existing header panels in my products:

image
image

c4p NotificationsPanel in my product

image

Component(s) impacted

NotificationsPanel

Allow the NotificationsPanel to support all carbon theme either via its parent Theme/Layer tags or an explicit theme prop

I can work around this for the most part by overriding c4p styles. This one override does most of the work:

.my-class-name:global(.c4p--notifications-panel.c4p--notifications-panel__container) {
  @include theme.theme(themes.$white);
}

However, I cannot override the NotificationPanel's NotificationsEmptyState's illustrationTheme prop, so a new emptyStateIllustrationTheme prop may be sufficient (though not ideal).

Browser

Chrome

@carbon/ibm-products (previously @carbon/ibm-cloud-cognitive) version

2.36.0

Severity

Severity 3 = The problem is visible or noticeable to users but does not impede the usability or functionality. Affects minor functionality, has a workaround.

Product/offering

IBM Z Hardware Management Console

CodeSandbox or Stackblitz example

https://stackblitz.com/github/carbon-design-system/ibm-products/tree/main/examples/carbon-for-ibm-products/NotificationsPanel?file=src%2FExample%2FExample.jsx

Steps to reproduce the issue (if applicable)

Render NotificationsPanel in white, g10, or g90 themed UI and the NotificationsPanel theme is always g100

Release date (if applicable)

No response

Code of Conduct

Tasks

  • Remove hardcoded theming
  • Get a design review once implemented (before PR merge)
@elycheea
Copy link
Contributor

Thanks for raising this issue!

Believe the enforced theme was as initially designed — but this design was based on Carbon 10 where the UI shell was not themed.

I’ve tagged this issue so we can discuss this further as a possible enhancement to the original design.

@aubrey-oneal aubrey-oneal added the priority: medium Pick up in the next two quarters label Jul 24, 2024
@aubrey-oneal aubrey-oneal moved this from Needs refinement 🤓 to Next in Carbon for IBM Products Jul 24, 2024
@oliviaflory
Copy link

@elycheea I think we would expect the notifications panel to follow the UI shell theme now that theming is a possibility in v11.

  • This is a good example to share with DSIT/DSAG for a product using something other than the gray 100 theme for UI shell!
  • We would need to sort out the layering logic, but can probably reference what core is doing with the switcher
  • Additionally, I think the notifications panel is one thing that the core team would maybe want to include in the UI shell in the future, but TBD on that

@oliviaflory oliviaflory added this to the 2025 Q1 milestone Nov 13, 2024
@oliviaflory oliviaflory moved this from Next to Needs refinement 🤓 in Carbon for IBM Products Nov 13, 2024
@oliviaflory
Copy link

@RichKummer
Copy link

@elycheea – for NotificationPanel, does theming just need to be enabled on the dev side or do you need a new design spec with v11 tokens?

@elycheea elycheea removed the needs: design opinion Design question needs opinion from designer label Jan 8, 2025
@elycheea elycheea moved this from Needs refinement 🤓 to Backlog 🌋 in Carbon for IBM Products Jan 8, 2025
@RichKummer RichKummer added kit: figma and removed type: enhancement 💡 New feature or request labels Jan 8, 2025
@paul-balchin-ibm paul-balchin-ibm moved this from Backlog 🌋 to In progress in Carbon for IBM Products Feb 7, 2025
@paul-balchin-ibm paul-balchin-ibm moved this from In progress to Needs review 👋 in Carbon for IBM Products Feb 11, 2025
@github-project-automation github-project-automation bot moved this from Needs review 👋 to Done 🚀 in Carbon for IBM Products Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done 🚀
Development

Successfully merging a pull request may close this issue.

6 participants