Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Nov 15, 2024
1 parent 003a163 commit a69b5f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
5 changes: 1 addition & 4 deletions src/button/ReactionToggleButton.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ div.reactionPopupMenuRoot.reactionPopupMenuModal > div > div {
}

.reactionsMenu {
min-height: calc(
(var(--reaction-button-fontsize) + var(--cpd-separator-spacing)) * 2
);
margin: 0;
padding: 0;
flex-grow: 1;
Expand Down Expand Up @@ -84,7 +81,7 @@ div.reactionPopupMenuRoot.reactionPopupMenuModal > div > div {

.verticalSeperator {
background-color: var(--cpd-color-gray-800);
width: 1px;
width: 2px;
height: auto;
margin-left: var(--cpd-separator-spacing);
margin-right: var(--cpd-separator-spacing);
Expand Down
4 changes: 0 additions & 4 deletions src/button/ReactionToggleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@ export function ReactionToggleButton({
setErrorText(undefined);
}, [showReactionsMenu]);

useEffect(() => {
return () => setShowReactionsMenu(false);
}, [setShowReactionsMenu]);

const canReact = !reactions[userId];

const sendRelation = useCallback(
Expand Down
8 changes: 4 additions & 4 deletions src/button/__snapshots__/ReactionToggleButton.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`Can close search 1`] = `
aria-expanded="true"
aria-haspopup="true"
aria-label="action.raise_hand_or_send_reaction"
aria-labelledby=":rad:"
aria-labelledby=":r9l:"
class="_button_i91xf_17 _has-icon_i91xf_66 _icon-only_i91xf_59"
data-kind="primary"
data-size="lg"
Expand Down Expand Up @@ -46,7 +46,7 @@ exports[`Can fully expand emoji picker 1`] = `
aria-expanded="true"
aria-haspopup="true"
aria-label="action.raise_hand_or_send_reaction"
aria-labelledby=":r74:"
aria-labelledby=":r6c:"
class="_button_i91xf_17 _has-icon_i91xf_66 _icon-only_i91xf_59"
data-kind="primary"
data-size="lg"
Expand Down Expand Up @@ -79,7 +79,7 @@ exports[`Can lower hand 1`] = `
aria-expanded="false"
aria-haspopup="true"
aria-label="action.raise_hand_or_send_reaction"
aria-labelledby=":r3i:"
aria-labelledby=":r36:"
class="_button_i91xf_17 raisedButton _has-icon_i91xf_66 _icon-only_i91xf_59"
data-kind="primary"
data-size="lg"
Expand Down Expand Up @@ -145,7 +145,7 @@ exports[`Can raise hand 1`] = `
aria-expanded="false"
aria-haspopup="true"
aria-label="action.raise_hand_or_send_reaction"
aria-labelledby=":r1p:"
aria-labelledby=":r1j:"
class="_button_i91xf_17 _has-icon_i91xf_66 _icon-only_i91xf_59"
data-kind="secondary"
data-size="lg"
Expand Down

0 comments on commit a69b5f2

Please sign in to comment.