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

[DEV-12552] Feature - Show pencil next to the caption & truncate if needed #530

Conversation

kudlajz
Copy link
Contributor

@kudlajz kudlajz commented Feb 28, 2024

  • caption is rendered as a ghost button by default, with pencil and truncation
  • when clicked, button changes into an input with the same styling to allow editing
  • introduced intermediary state for caption as using the caption prop directly causes the input to rerender on every update, causing a bug that moves the caret to the end of the input
Screenshot 2024-02-28 at 11 56 56

@kudlajz kudlajz self-assigned this Feb 28, 2024
@kudlajz kudlajz merged commit 301bc9d into main Feb 28, 2024
9 checks passed
@kudlajz kudlajz deleted the feature/dev-12552-is-it-possible-to-truncate-captions-with-dots-when-not-being branch February 28, 2024 11:02
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.

1 participant