-
Notifications
You must be signed in to change notification settings - Fork 305
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
Support required text and optional text configuration. #1963
Conversation
@shelaghm |
This looks good to me. Thanks @santosh-pingle |
can we just always append (required/optional) after question text, and if question text does't exist, append it to instruction text. |
I've gone through and mocked up all the options, so we can be sure we are talking about the same options. I'll also post link in group chat as it's a lot! |
Feedback from @mberg |
@shelaghm |
@santosh-pingle I recommend that the default is I suggest we make the following configurable:
I'm not sure if we need to add ability to also append the required/optional text behind the question title instead of in the instructions/help field. @jingtang10 what do you think? Let's discuss |
Team discussion:
Note to Shelagh to update the design guidelines with this update. |
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireViewModel.kt
Outdated
Show resolved
Hide resolved
@santosh-pingle I tested all three options and they seem to work well. I however have a small design request for the Asterisk display I think we need some spacing between the text and the Asterisk. I think the Asterisk should have a red text colour. cc: @shelaghm |
@shelaghm should these 3 options be mutually exclusive? Right now you can how all can be turned on at the same time. |
Yes, agreed. @santosh-pingle we should add one space before the asterisk.
From our usability testing we learned that the red color on the asterisk was confusing, some people thought it was an error because it was red. So I don't recommend making the asterisk red.
Yes, you can turn on all of these at the same time, because you might want to show the required text and the asterisk at the same time. |
Agreed I think red should only be used to indicate and error. eg i
submitted and it was required but not by default
…On Tue, May 9, 2023 at 11:42 AM Shelagh McLellan ***@***.***> wrote:
I think we need some spacing between the text and the Asterisk.
Yes, agreed. @santosh-pingle <https://github.com/santosh-pingle> we
should add one space before the asterisk.
I think the Asterisk should have a red text colour.
From our usability testing we learned that the red color on the asterisk
was confusing, some people thought it was an error because it was red. So I
don't recommend making the asterisk red.
should these 3 options be mutually exclusive? Right now you can how all
can be turned on at the same time.
Yes, you can turn on all of these at the same time, because you might want
to show the required text and the asterisk at the same time.
@dubdabasoduba <https://github.com/dubdabasoduba> @santosh-pingle
<https://github.com/santosh-pingle> @jingtang10
<https://github.com/jingtang10>
—
Reply to this email directly, view it on GitHub
<#1963 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAOEQMFAHI7WLBC6IW7SPTXFJQUVANCNFSM6AAAAAAW3IBZDE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @santosh-pingle
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireViewModel.kt
Outdated
Show resolved
Hide resolved
...id/fhir/datacapture/views/QuestionnaireItemDialogMultiSelectViewHolderFactoryEspressoTest.kt
Outdated
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/views/HeaderView.kt
Outdated
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/views/HeaderView.kt
Show resolved
Hide resolved
.../java/com/google/android/fhir/datacapture/views/factories/DateTimePickerViewHolderFactory.kt
Outdated
Show resolved
Hide resolved
- With unmerged PR #1 - With unmerged PR google#1917 - With unmerged PR google#1978 - With unmerged PR google#1964 - With unmerged PR google#1963 - With unmerged PR google#1907
Resolving review comments. |
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #1954
Description
Alternative(s) considered
Have you considered any alternatives? And if so, why have you chosen the approach in this PR?
Type
Choose one: Feature
Screenshots (if applicable)
Checklist
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project../gradlew check
and./gradlew connectedCheck
to test my changes locally.