docs(Prototype): Chat messages with reactions popover prototype#524
docs(Prototype): Chat messages with reactions popover prototype#524
Conversation
sophieH29
commented
Nov 26, 2018

…es-popover-prototype
# Conflicts: # CHANGELOG.md
Generated by 🚫 dangerJS |
Codecov Report
@@ Coverage Diff @@
## master #524 +/- ##
=========================================
Coverage ? 88.17%
=========================================
Files ? 42
Lines ? 1455
Branches ? 212
=========================================
Hits ? 1283
Misses ? 167
Partials ? 5Continue to review full report at Codecov.
|
docs/src/prototypes/chatMessageWithPopover/ChatMessageWithPopover.tsx
Outdated
Show resolved
Hide resolved
docs/src/prototypes/chatMessageWithPopover/ChatMessageWithPopover.tsx
Outdated
Show resolved
Hide resolved
docs/src/prototypes/chatMessageWithPopover/ChatMessageWithPopover.tsx
Outdated
Show resolved
Hide resolved
docs/src/prototypes/chatMessageWithPopover/ChatMessageWithPopover.tsx
Outdated
Show resolved
Hide resolved
docs/src/prototypes/chatMessageWithPopover/ChatMessageWithPopover.tsx
Outdated
Show resolved
Hide resolved
….com/stardust-ui/react into docs/chat-messages-popover-prototype
docs/src/prototypes/chatMessageWithPopover/ChatMessageWithPopover.tsx
Outdated
Show resolved
Hide resolved
docs/src/prototypes/chatMessageWithPopover/ChatMessageWithPopover.tsx
Outdated
Show resolved
Hide resolved
| this.state.popupOpened && this.setState({ popupOpened: false }) | ||
| } | ||
|
|
||
| menuStyles = ({ theme: { siteVariables } }) => ({ |
There was a problem hiding this comment.
In my opinion all styles shuold be separate in different file then the definition of the component using them.
There was a problem hiding this comment.
agree that this might be better when having styles separately so the code will look cleaner. But I would leave exactly these styles where they are, so it be more understandable when the focused state is changed it has direct affect in styles
| 'aria-label': 'more options', | ||
| }, | ||
| ]} | ||
| renderItem={this.renderItemOrContextMenu} |
There was a problem hiding this comment.
Yeah, I just found out it yesterday when Popup hasn't render. Will take a look today how to solve it
mnajdova
left a comment
There was a problem hiding this comment.
Please see the comments provided.
There was a problem hiding this comment.
I am approving these changes, but before you merge, please take a look into one issue that I found (or at least I expected different behavior), while testing locally. This are the steps:
- hover on the message (the popover is open)
- hover on the popover (all 5 items were shown)
- hover the three dots and click one of the items in the menu
The menu closed but the popup is still shown with all five things opened, until you click somewhere outside of the it.
Here is a gif showing this: https://i.imgur.com/u8PV7l3.gif