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

2548: Split feedback toolbar item component #3015

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

steffenkleinle
Copy link
Member

@steffenkleinle steffenkleinle commented Dec 3, 2024

Short description

Split feedback toolbar item for better separation of concerns.

Proposed changes

  • Make FeedbackToolbarItem only render one toolbar item (positive or negative depending on a new prop)
  • Render two FeebackToolbarItems
  • Move isPositive state back to FeedbackContainer

Side effects

  • None.

Testing

Check out the feedback items in the toolbar and send some.

Resolved issues

Fixes: #2548

Additonal context

Closed #3012 in favor of this PR.
Discussed in #3004 (comment).


@steffenkleinle steffenkleinle mentioned this pull request Dec 3, 2024
@steffenkleinle steffenkleinle changed the title [Proposal] 2548: Split feedback toolbar item component 2548: Split feedback toolbar item component Dec 3, 2024
@steffenkleinle steffenkleinle marked this pull request as ready for review December 3, 2024 19:26
Copy link
Contributor

@LeandraH LeandraH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, tested in Firefox on desktop and mobile sizing.

@@ -15,8 +15,7 @@ type FeedbackContainerProps = {
noResults?: boolean
slug?: string
onSubmit?: () => void
isPositiveRating: boolean | null
setIsPositiveRating?: (isPositiveFeedback: boolean | null) => void
initialRating: boolean | null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍 Great naming!

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.

Feedback functionality too hard to find and less used
2 participants