feat: Structure tailwind CSS styling for reusability#130
feat: Structure tailwind CSS styling for reusability#130ricardozanini merged 1 commit intoserverlessworkflow:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR restructures styling for the diagram editor by moving React Flow overrides and node styling into Tailwind-driven CSS layers, aiming to improve reusability and maintainability.
Changes:
- Adds Tailwind layer-based styling and React Flow cursor overrides in
Diagram.css. - Updates React Flow node markup to use new reusable CSS class names.
- Cleans up an unused test variable in the drag-and-drop story test.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| packages/serverless-workflow-diagram-editor/tests/diagram-editor/DiagramEditorDragNDrop.story.test.tsx | Removes an unused DOM query in a story-based test. |
| packages/serverless-workflow-diagram-editor/src/react-flow/nodes/Nodes.tsx | Replaces long inline Tailwind class strings with reusable CSS class names. |
| packages/serverless-workflow-diagram-editor/src/react-flow/diagram/Diagram.css | Introduces Tailwind import + layered CSS for React Flow overrides and custom node styling. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b7c5b1d to
d081425
Compare
d081425 to
8364a1b
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fantonangeli
left a comment
There was a problem hiding this comment.
LGTM, I left a small comment which I'm unsure
Signed-off-by: handreyrc <handrey.cunha@gmail.com>
8364a1b to
889002a
Compare
|
If you do not have furher considerations, this PR is good enough to be merged. Thanks! |
Closes #129
Summary
This PR introduces tailwind layers in order to centralize and facilitate styling reusability.
Changes