Skip to content

Commit

Permalink
refactor: optimized code to render dependent dropdown better
Browse files Browse the repository at this point in the history
  • Loading branch information
prasanna-vijayan committed Nov 16, 2023
1 parent 68dc8e7 commit 982dfb4
Show file tree
Hide file tree
Showing 4 changed files with 277 additions and 166 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ $warning-color: $color-casablanca-300;
}

.fb-field-dependent {
width: calc(100% - 50px);

.fb-field-dropdown-label-dependent-field {
font-size: 14px;
line-height: 21px;
Expand All @@ -71,14 +73,14 @@ $warning-color: $color-casablanca-300;
}

.spacing-bottom-1 {
margin-block-start: 20px;
margin-block-start: 0px;
}

.spacing-bottom-2 {
margin-block-start: 40px;
margin-block-start: 20px;
}

.spacing-bottom-3 {
margin-block-start: 60px;
margin-block-start: 40px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
div {
width: 100%;
}

fw-fb-field-dropdown {
width: 270px;
}
}
}

Expand Down Expand Up @@ -434,6 +430,22 @@
flex-direction: column;
}
}

&-content-label-interalName {
display: flex;
flex-direction: column;
gap: 16px;
}

&-content-label {
text-transform: uppercase;
color: $color-elephant-900;
font-size: 12px;
font-weight: 600;
line-height: 20px;
margin-block-end: 8px;
display: block;
}
}

.fw-field-editor-delete-modal-content {
Expand Down
Loading

0 comments on commit 982dfb4

Please sign in to comment.