-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support repeatable group questions for row and col item controls
- Loading branch information
Showing
22 changed files
with
576 additions
and
372 deletions.
There are no files selected for viewing
82 changes: 37 additions & 45 deletions
82
web/src/components/BaseQuestionnaireResponseForm/QuestionnaireResponseForm.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,56 @@ | ||
@import 'src/styles/colors'; | ||
@import 'src/styles/fonts'; | ||
|
||
.groupWrapper { | ||
background-color: #77ee77; | ||
} | ||
|
||
.groupLabel { | ||
@include base-text-12-bold; | ||
} | ||
|
||
.questLabel { | ||
@include base-text-12-bold; | ||
} | ||
|
||
.repeatsGroupItemsContainer { | ||
margin-bottom: 10px; | ||
} | ||
|
||
.repeatsGroupItemTitle { | ||
@include base-text-10-bold; | ||
color: lighten($base-dark-color, 60%); | ||
} | ||
|
||
.repeatsGroupItemTitle { | ||
} | ||
|
||
.repeatsGroupItemHeader { | ||
.form { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
} | ||
flex-direction: column; | ||
gap: 12px; | ||
padding-right: 24px; | ||
|
||
.repeatsGroupRemoveItemButton { | ||
text-align: right; | ||
input { | ||
width: 100%; | ||
box-sizing: border-box; | ||
} | ||
} | ||
|
||
.repeatsGroupRemoveItemButtonTitle { | ||
@include base-text-10-bold; | ||
color: $danger-color; | ||
.field { | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 4px; | ||
} | ||
|
||
.repeatsGroupRemoveItemButtonTitle:hover { | ||
color: darken($danger-color, 20%); | ||
.labelWrapper { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
} | ||
|
||
.repeatsGroupItemBody { | ||
} | ||
.label { | ||
font-weight: 600; | ||
font-size: 12px; | ||
line-height: 14px; | ||
margin: 0; | ||
cursor: pointer; | ||
|
||
.repeatsGroupAddItemButton { | ||
margin-bottom: 20px; | ||
&._readOnly { | ||
cursor: default; | ||
} | ||
} | ||
|
||
.repeatsGroupAddItemButtonTitle { | ||
@include base-text-10-bold; | ||
color: $primary-color; | ||
.helpText { | ||
font-size: 12px; | ||
line-height: 18px; | ||
margin: 0; | ||
} | ||
|
||
.repeatsGroupAddItemButtonTitle:hover { | ||
color: darken($primary-color, 20%); | ||
.display { | ||
width: 100%; | ||
} | ||
|
||
.questLabel { | ||
.displayLabel { | ||
font-weight: 600; | ||
font-size: 12px; | ||
line-height: 14px; | ||
margin: 0; | ||
} |
31 changes: 11 additions & 20 deletions
31
web/src/components/BaseQuestionnaireResponseForm/components/boolean/BooleanField.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,15 @@ | ||
@import "src/styles/colors"; | ||
@import 'src/styles/colors'; | ||
@import 'src/styles/fonts'; | ||
|
||
.wrapper { | ||
margin-top: 10px; | ||
.group { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.groupLabel { | ||
@include base-text-12-bold; | ||
} | ||
|
||
.select { | ||
@include base-text-12-normal; | ||
font-family: Poppins, serif; | ||
padding: 6px 5px 6px; | ||
border: none; | ||
border-bottom: 2px solid $base-surface-color; | ||
} | ||
|
||
.select:focus { | ||
border-bottom: 2px solid $primary-color; | ||
flex-direction: row; | ||
align-items: center; | ||
gap: 4px; | ||
cursor: pointer; | ||
|
||
input.checkbox { | ||
width: auto; | ||
margin: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.