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

fix: first-child replaced with first-of-type due to SSR warning #4298

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function useCounter() {

const StyledDiv = styled.div`
svg {
stop:first-child {
stop:first-of-type {
stop-color: #dd2476 !important;
}
stop:last-child {
Expand All @@ -139,7 +139,7 @@ const StyledDiv = styled.div`
}

[data-blue-gradient-svg] {
stop:first-child {
stop:first-of-type {
stop-color: #4c6dd4 !important;
}
stop:last-child {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/workflow/FlowEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ const Wrapper = styled.div<{ dark: boolean }>`
cursor: pointer;

[data-blue-gradient-svg] {
stop:first-child {
stop:first-of-type {
stop-color: #4c6dd4 !important;
}
stop:last-child {
Expand Down Expand Up @@ -393,7 +393,7 @@ const Wrapper = styled.div<{ dark: boolean }>`
}

[data-template-store-editor] [data-workflow-node-icon] {
stop:first-child {
stop:first-of-type {
stop-color: #dd2476 !important;
}
stop:last-child {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/workflow/NodeStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const LeftContent = styled.div`
align-items: center;
gap: 15px;
svg {
stop:first-child {
stop:first-of-type {
stop-color: #dd2476 !important;
}
stop:last-child {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/pages/templates/workflow/SideBar/AddStepMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ const StyledDraggableNode = styled.div`

&:hover {
svg {
stop:first-child {
stop:first-of-type {
stop-color: #dd2476 !important;
}
stop:last-child {
stop-color: #ff512f !important;
}
}
[data-blue-gradient-svg] {
stop:first-child {
stop:first-of-type {
stop-color: #4c6dd4 !important;
}
stop:last-child {
Expand Down
Loading