From 621d81621c1f6f2b0e66b0998a0d9cd8c3b9c6e1 Mon Sep 17 00:00:00 2001 From: Engin Polat Date: Tue, 16 Jan 2024 11:49:01 -0800 Subject: [PATCH] fixing in 200% zoom mode, Content which is present in the dialog is not visible (#605) fixing dialog styles to improve accessibility --- .../components/feedbackItem.tsx | 24 ++++++------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/RetrospectiveExtension.Frontend/components/feedbackItem.tsx b/RetrospectiveExtension.Frontend/components/feedbackItem.tsx index 78167cd9..e6e37ece 100644 --- a/RetrospectiveExtension.Frontend/components/feedbackItem.tsx +++ b/RetrospectiveExtension.Frontend/components/feedbackItem.tsx @@ -160,7 +160,7 @@ class FeedbackItem extends React.Component { + private receiveDeletedItemHandler = (columnId: string, feedbackItemId: string) => { if (feedbackItemId === this.props.id && !this.state.isMarkedForDeletion) { this.markFeedbackItemForDelete(); } @@ -247,8 +247,8 @@ class FeedbackItem extends React.Component { - await this.props.moveFeedbackItem( + private onConfirmRemoveFeedbackItemFromGroup = () => { + this.props.moveFeedbackItem( this.props.refreshFeedbackItems, this.props.boardId, this.props.id, @@ -271,7 +271,7 @@ class FeedbackItem extends React.Component { - if (this.props.groupedItemProps && this.props.groupedItemProps.isMainItem && this.props.groupedItemProps.isGroupExpanded) { + if (this.props.groupedItemProps?.isMainItem && this.props.groupedItemProps?.isGroupExpanded) { this.props.groupedItemProps.toggleGroupExpand(); } @@ -317,12 +317,6 @@ class FeedbackItem extends React.Component { - this.setState({ - isMobileFeedbackItemActionsDialogHidden: false, - }); - } - private hideMobileFeedbackItemActionsDialog = () => { this.setState({ isMobileFeedbackItemActionsDialogHidden: true, @@ -566,8 +560,7 @@ class FeedbackItem extends React.Component, feedbackItemProps: IFeedbackItemProps) => { event.stopPropagation(); - // Enter - if (event.keyCode === 13) { + if (event.key === "Enter") { FeedbackItemHelper.handleDropFeedbackItemOnFeedbackItem( feedbackItemProps, this.props.id, @@ -576,8 +569,7 @@ class FeedbackItem extends React.Component