Skip to content

Commit

Permalink
Merge pull request #4298 from UzairNoman/fix/NV-2932-pseudo-class-fir…
Browse files Browse the repository at this point in the history
…st-child-warning

fix: first-child replaced with first-of-type due to SSR warning
  • Loading branch information
LetItRock authored Oct 23, 2023
2 parents d127654 + a002b9d commit 735d6ef
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
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

0 comments on commit 735d6ef

Please sign in to comment.