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

Make submit button a different colour to the toolbar #163

Closed
fredhersch opened this issue Jan 22, 2021 · 21 comments
Closed

Make submit button a different colour to the toolbar #163

fredhersch opened this issue Jan 22, 2021 · 21 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed type:enhancement New feature or request

Comments

@fredhersch
Copy link
Collaborator

In the questionnaire with submit button on toolbar. Can we show the submit button with different styling (just border outline for example).

@fredhersch fredhersch added the type:bug Something isn't working label Jan 22, 2021
@fredhersch fredhersch added this to Needs triage in Data capture library via automation Jan 22, 2021
@fredhersch fredhersch moved this from Needs triage to Medium priority in Data capture library Jan 22, 2021
@fredhersch fredhersch moved this from Medium priority to Low priority in Data capture library Jan 22, 2021
@jingtang10 jingtang10 added the good first issue Good for newcomers label Jan 22, 2021
@fredhersch fredhersch added type:enhancement New feature or request good first issue Good for newcomers and removed type:bug Something isn't working good first issue Good for newcomers labels Jan 22, 2021
@jingtang10 jingtang10 added the help wanted Extra attention is needed label Jan 22, 2021
@jingtang10 jingtang10 moved this from Low priority to To do in Data capture library Jan 26, 2021
@varunvjha
Copy link
Contributor

Can I work on this issue?

@jingtang10
Copy link
Collaborator

Hi Varun - thanks for your interest. Can you clone the repo locally and try to run the datacapturegallery app first. Once you've done that and you're clear what to do I can grant write access.

@varunvjha
Copy link
Contributor

Sure. I'd love to do that.

@jingtang10 jingtang10 linked a pull request Feb 2, 2021 that will close this issue
@jingtang10 jingtang10 moved this from To do to In progress in Data capture library Feb 2, 2021
@jingtang10
Copy link
Collaborator

jingtang10 commented Feb 2, 2021

@fredhersch after reviewing https://material.io/components/app-bars-top/android#using-top-app-bars I could not find any example of a button with a border in the top app bar. Do we definitely still want this?

Also, can you please share the original mock here for Varun's reference?

@fredhersch
Copy link
Collaborator Author

You are right @jingtang10 . The goal is to show the submit button in a different colour! That will be sufficient. I will update the issue.

@fredhersch fredhersch changed the title Show border around submit button on questionnaire Make button a different colour to the toolbar Feb 3, 2021
@fredhersch fredhersch changed the title Make button a different colour to the toolbar Make submit button a different colour to the toolbar Feb 3, 2021
@fredhersch
Copy link
Collaborator Author

@varunvjha let's make the submit button #eee on the dark toolbar background. Thanks

@jingtang10
Copy link
Collaborator

@fredhersch I cannot see an example in the spec for the top action bar that has a button with a different background color. I wonder if we should use https://material.io/components/buttons-floating-action-button#usage for the submit button?

@fredhersch
Copy link
Collaborator Author

@jingtang10 What happens if you try and set the background of the button to a different colour? Not sure the FAB is the right component .. will have to do some research!

@mberg
Copy link
Collaborator

mberg commented Feb 23, 2021

I don't think we want to go with a FAB for form submission. Once we get paginated forms we'll want to make it super clear where the form ends and where you are supposed to submit! With OpenSRP we went with an approach where we put submit in the top header and also as a button on the page. Let me get Roger (lead designer on OpenSRP) added to the repo so he can weigh in.

@jingtang10
Copy link
Collaborator

thanks @mberg - can you or Roger post some screenshots? I think we will probably end up having the option to have the button inside or outside.

@masterishaan19
Copy link

Is this issue still open ?? Can I work on this ??

@jingtang10
Copy link
Collaborator

this is open but i think we need to do some product and UX work here first.

@Manikant25
Copy link
Contributor

@jingtang10 Can I work on it?

@Prakhar-Agarwal-byte
Copy link
Contributor

@jingtang10 I want to work on this. Please assign it to me.

@Ana2k
Copy link
Contributor

Ana2k commented Mar 18, 2021

@jingtang10 if this issue is still open can you please assign this issue to me? I think I can fix this issue.

@sakets3010
Copy link

sakets3010 commented Mar 22, 2021

this is open but i think we need to do some product and UX work here first.

@jingtang10 while you're at it, you might also wanna change the border colors (usually the secondary color in colors.xml) of outline styled text fields for dark mode. Attaching screenshots for reference (see how the edit text fields become visible when clicked upon but not other wise)

Willing to work on the above and the button implementation if you are done deciding the type of implementation you require.

@epicadk
Copy link
Contributor

epicadk commented Mar 22, 2021

@sakets3010 please use the markdown <img> tag or <table> tag so that it is easier to view the images.

@sakets3010
Copy link

@sakets3010 please use the markdown <img> tag or <table> tag so that it is easier to view the images.

@epicadk thanks for pointing out,hope it looks better now.

@jingtang10
Copy link
Collaborator

this is open but i think we need to do some product and UX work here first.

@jingtang10 while you're at it, you might also wanna change the border colors (usually the secondary color in colors.xml) of outline styled text fields for dark mode. Attaching screenshots for reference (see how the edit text fields become visible when clicked upon but not other wise)

Willing to work on the above and the button implementation if you are done deciding the type of implementation you require.

Thanks for reporting this @sakets3010. Can you please create a separate issue with screenshots? By the way I'm not seeing this behavior on my device.

@jingtang10
Copy link
Collaborator

jingtang10 commented Mar 22, 2021

We have not had clear direction on this one. @fredhersch @rowo. Plus, the current look and feel is consistent with material guidelines. I'm going to close this. Please feel free to reopen with a mock. Thanks!

Data capture library automation moved this from In progress to Done Mar 22, 2021
@sakets3010
Copy link

this is open but i think we need to do some product and UX work here first.

@jingtang10 while you're at it, you might also wanna change the border colors (usually the secondary color in colors.xml) of outline styled text fields for dark mode. Attaching screenshots for reference (see how the edit text fields become visible when clicked upon but not other wise)

Willing to work on the above and the button implementation if you are done deciding the type of implementation you require.

Thanks for reporting this @sakets3010. Can you please create a separate issue with screenshots? By the way I'm not seeing this behavior on my device.

@jingtang10 sure,i will mention the device name in a separate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed type:enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

10 participants