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 'Add location' button more prominent #522

Conversation

marceloams
Copy link
Contributor

  • Restored standard orange button styling used across the app.
  • Maintained the same behavior when the button is disabled.

Closes #511

- Restored standard orange button styling used across the app.
- Maintained the same behavior when the button is disabled.
@marceloams marceloams changed the title Make 'Add location' button more prominent (#511) Make 'Add location' button more prominent Oct 18, 2024
@wbazant
Copy link
Collaborator

wbazant commented Oct 18, 2024

Thanks for taking on the issue, and I like the solution of applying primary property to the button.

On my desktop (Firefox browser) the button has a white border, and then a grey one:
Screenshot from 2024-10-18 11-36-37

Zoomed in:
Screenshot from 2024-10-18 11-38-06

Could you look into the button's styling and removing these? I assume the white border was an artifact and a grey one was the original attempt to make that button stand out, I think we can try make the button just orange without the shading around it, or the alternative is a white button with an orange border as we have for the Report button on the location page.

@ezwelty
Copy link
Collaborator

ezwelty commented Oct 18, 2024

I think we can try make the button just orange without the shading around it, or the alternative is a white button with an orange border as we have for the Report button on the location page.

Agreed. But let's make it orange fill. The design principle with the buttons was to have primary behavior orange fill (add location, review location, submit), and secondary behavior (report, cancel) orange border.

(As I describe this logic, I wonder whether "Sign in" shouldn't have an orange border to clearly stand out as an action).

@marceloams
Copy link
Contributor Author

Hey @wbazant, I’ve removed the white border from the ‘Add location’ button as you suggested. Below is a picture showing the outlined sign-in button proposed by @ezwelty. Let me know your thoughts!

Captura de tela de 2024-10-18 20-08-47

@wbazant
Copy link
Collaborator

wbazant commented Oct 19, 2024

@marceloams thanks! Yes please to the orange outline, I made #529 to track. Did you intentionally keep the box-shadow property? The Sign Up button doesn't have it so I'd make them the same - and I personally like one without a bit more but I'm not a designer!

@marceloams
Copy link
Contributor Author

@wbazant, are you referring to the shadow on the ‘Add location’ button or the ‘Sign In' button? Just to clarify, there's no shadow on the ‘Sign In’ button.

@wbazant
Copy link
Collaborator

wbazant commented Oct 21, 2024

@marceloams the Add Location button has this property: box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); . If you take a screenshot and zoom in, you'll see a shade around the button. It made sense when it was a white button on a white background - it creates the effect of the button coming out of the page - but if we're using orange styling for the Add Location button, I think we don't need it.

@marceloams
Copy link
Contributor Author

@wbazant Thanks for the clarification! I agree, it definitely looks better without the shadow. I've removed it now. Let me know if there's anything else you'd like adjusted, or if this looks good to you.

@wbazant wbazant merged commit 86ccc9d into falling-fruit:main Oct 22, 2024
1 check passed
@wbazant
Copy link
Collaborator

wbazant commented Oct 22, 2024

Thanks for your patience! I think this is ready to go in now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make "Add location" button more prominent
3 participants