-
Notifications
You must be signed in to change notification settings - Fork 2
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
Remove css-in-js button styles from core #139
Conversation
✅ Deploy Preview for i-vresse-workflow-builder ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #139 +/- ##
==========================================
+ Coverage 66.74% 67.04% +0.29%
==========================================
Files 57 57
Lines 4065 4017 -48
Branches 337 337
==========================================
- Hits 2713 2693 -20
+ Misses 1348 1320 -28
Partials 4 4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
277b928
to
0574b0d
Compare
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 was able to copy the build of core package to haddock3 webapp, it worked but missing styles, but that can be picked up in a pr on the webapp repo.
The tables in guru catalog > rigidbody > symetry now have a horizontal scrollbar on themselves instead of whole form. Which is better, but you now have to scroll each time you want to add a row (see #141)
The download button disappears under the page fold when the form gets expanded a lot.
while before a scrollbar was shown around the form/catalog/workflow. In the hadock3 webapp the button row floats. Having the least amount of scrollbars is I think my preference, Not sure if the button row should be sticky or get pushed down. What do you think?
I approved this PR as inline comments can be handled in this PR or later.
} | ||
|
||
/* Show panel section is clickable */ | ||
h5[id^="expander4"]{ |
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.
Can we use .panel-title
class instead of id begins with selector? Or is the class used elsewhere?
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.
"panel-title" class is not used in all panels :-(. This is the only selector I found that works for all collapsible panels.
Maybe we can move the global parameters to be first item in the workflow list (without the option for move and delete) and then have three workflow buttons at the top: Upload, Download and Clear. For the "node" buttons (save, delete and cancel) we could implement some basic "auto save" approach and remove the buttons. Delete option is present in the list but we loose the cancel option in this case. |
Based on the feedback from users of haddock web app and the investigation performed in this issue it is been decided to remove css-in-js styles from core library. Instead, the specific classes are added which can be used for customization
btn-catalog-node
,btn-visual-node
,btn-visual-panel
.It was not possible to completely remove @emotion dependency. There were build errors with the storybook components. I moved @emotion to devDependencies for now.
After removing styles from core lib, the (example) download app styles are extended. Additional (similar) work might be needed in the other apps (I have not checked it actually).
Example download app (with changed styles)