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

feat: improve ux of input fields in edit recipe page #229

Merged

Conversation

JoarHansson
Copy link
Collaborator

@JoarHansson JoarHansson commented Nov 18, 2024

From Issue:

  • Current border radius hides text in the corners (Border radiuses should be a group decision so its left out from this PR)
  • Hardcoded height value (with scroll bar) might not be the best UX. Two solution suggestions:
    • Native HTML enlarge the textarea by dragging lower right corner (Arguably not needed)
    • Dynamic height values depending on the content. See screen recording.

Also included in PR:

New component DeleteButtonDropdown. Replaces delete action in EditIngredientsList and EditInstructionsList for individual ingredients / instructions. Styling of the button is changed a bit. See screen recording.


Dynamic height values:
https://github.com/user-attachments/assets/b3607536-94c2-427a-98d6-3592c130ceb3

New styling of delete button:
https://github.com/user-attachments/assets/8af1b2a9-f24d-401d-af87-7840b7ec800c

- edit appearance of delete button dropdown
- break out repeating logic and styling
- and implement in EditIngredientsList.tsx and EditInstructionsList.tsx
@JoarHansson JoarHansson linked an issue Nov 18, 2024 that may be closed by this pull request
@sirisayshello sirisayshello self-requested a review November 18, 2024 12:47
@sirisayshello sirisayshello merged commit 18d740f into main Nov 18, 2024
2 checks passed
@sirisayshello sirisayshello deleted the 221-feat-improve-ux-of-input-fields-in-edit-recipe-page branch November 18, 2024 12:48
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.

feat: improve UX of input fields in edit recipe page
2 participants