-
Notifications
You must be signed in to change notification settings - Fork 941
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
[frontend] fixed header colors (#8249) #8277
Conversation
@@ -49,7 +49,7 @@ const StixCyberObservableEditionContainer = (props) => { | |||
> | |||
<Close fontSize="small" color="primary" /> | |||
</IconButton> | |||
<Typography variant="h6" classes={{ root: classes.title }}> | |||
<Typography variant="subtitle2" classes={{ root: classes.title }}> |
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.
Ok, your fix might work but I think there is a better way :
We do have an internal Drawer component that is using MaterialUI inside.
I think the correct fix is to handle the usages of StixCyberObservableEditionContainer by replacing the old Drawer by the new one. (For example you can look at ReportCreation.tsx to see how we use the new Drawer)
/> | ||
</div> | ||
</div> | ||
<StixCyberObservableEditionOverview |
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.
Should I add the custom Drawer here instead of in all three places?
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.
Well if you think this is relevant you can :)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8277 +/- ##
==========================================
- Coverage 66.23% 66.22% -0.02%
==========================================
Files 597 597
Lines 60300 60436 +136
Branches 6196 6202 +6
==========================================
+ Hits 39939 40023 +84
- Misses 20361 20413 +52 ☔ View full report in Codecov by Sentry. |
f8359b7
to
558e6c1
Compare
Signed-off-by: stefan1anuby <[email protected]>
e5caafe
to
cf20562
Compare
Ok, I have some bad news. While testing it I found out I gave you wrong direction => the replacement is not straight-forward for StixCyberObs* Sorry about that. You can still try to improve the Drawer in a second review but if you take a look at SCO Detail page or even some KnowledgeGraphs (Report for example) you will see that it's not displaying the way we want currently |
cf20562
to
3416cac
Compare
I recently reached the same conclusion during some unrelated testing. I could have done more testing earlier to catch the issue sooner, or at least addressed it right away when I discovered the problem. |
After fix:
Related issues
part of #8249
Checklist
Further comments
From what I can see, the problem is not limited to Light mode. Here are a few examples of drawers that have the same issue (though there are more):
Should I apply the same quick fix to each, or would it be better to refactor them to use the Drawer component? It looks like the 'correct' drawers use the Drawer component internally, but that would require a major refactor and take more time.