Skip to content

Commit

Permalink
Use CSS classes to style mgt elements with disambiguation
Browse files Browse the repository at this point in the history
  • Loading branch information
musale committed Feb 7, 2024
1 parent 5c44ae9 commit 288dbf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/mgt-chat/src/components/Chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const messageThreadStyles: MessageThreadStyles = {
}
},
chatMessageContainer: {
'& p>mgt-person,msft-mention': {
'& p>.mgt-person-mention,msft-mention': {
display: 'inline-block',
...shorthands.marginInline('0px')
},
Expand All @@ -94,7 +94,7 @@ const messageThreadStyles: MessageThreadStyles = {
}
},
myChatMessageContainer: {
'& p>mgt-person,msft-mention': {
'& p>.mgt-person-mention,msft-mention': {
display: 'inline-block',
...shorthands.marginInline('0px')
},
Expand Down
2 changes: 1 addition & 1 deletion packages/mgt-chat/src/utils/mentions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const renderMGTMention = (chatState: GraphChatClient) => {
};
const MgtMention = me ? MgtMeMention : MgtOtherMention;
render = (
<Person userId={user?.id} personCardInteraction="hover">
<Person className="mgt-person-mention" userId={user?.id} personCardInteraction="hover">
<MgtMention />
</Person>
);
Expand Down

0 comments on commit 288dbf9

Please sign in to comment.