-
Notifications
You must be signed in to change notification settings - Fork 165
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
Add MUI theme config to fix Sidebar and Tabs color #960
Conversation
🦋 Changeset detectedLatest commit: 12f07a1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The image is available at: |
/cc @ShiranHi |
Thank you @debsmita1!, I have few comments
|
The tabs component that you see being used in plugins is a Backstage’s HeaderTab component and the hover color is the same as the background color of the app.
Similarly, the nav component is Backstage's SidebarItem component and there's no prop available that allows removing the underline
Fixed it, using '#0066CC' as mentioned in the slide |
The image is available at: |
The image is available at: |
Can we do the same? so the hover color will be the same to the background?
I am not sure why we have that underline on the navigation when hovering, on the Backstage demo env they don't show any underline when hovering |
d369688
to
96898d0
Compare
So an example to show you what happens if I change the background default color (theme.palette.background.default) In the light theme, if I have to match the hover color to the selected tab color it will look like this dark theme would look like
Fixed it, the underline was added by us. Thank you sharing the backstage demo Screen.Recording.2024-02-14.at.12.03.20.PM.mov |
The image is available at: |
This looks really good! The only thing that's bugging me is the border line under the tabs, for both light and dark it there's a margin on the left-hand side leaving a space but on the right-hand side of the page there's no space. I tried capturing a more narrow window to help highlight this: Shows up better in dark mode and I think maybe the border color could be too bright in this variant also: |
@gashcrumb The HeaderTab component adds this padding on the left
and the |
I don't know if maybe trying to override it using something like this could work, but if you like this could be investigated later as a separate thing. |
5ca8ded
to
e349cb0
Compare
This worked! Thank you @gashcrumb !! |
The image is available at: |
looks good @debsmita1 ! 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have two small improvement ideas.
@invincibleJai I'm also fine to get this in now and improve this later. Feel free to add approval, it's def. the right direction and btw it will create a conflict with #957
/lgtm
Thanks @jerolimov @debsmita1 PTAL at open comments and would be nice if we could handle those in the same PR. LMK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
/lgtm
/approve
/approve |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: invincibleJai, jerolimov, kadel The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The image is available at: |
da6b742
into
redhat-developer:main
Which issue(s) does this PR fix
Selected Tab (dark theme)

Tab when hovered (dark theme)

Selected Tab (light theme)

Tab when hovered (light theme)

Nav when hovered (light theme)

Nav when hovered (dark theme)
