Skip to content

Commit

Permalink
fix(fuselage): Message Highlight touching text (#1056)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh authored May 19, 2023
1 parent 9aa087a commit 5d64e33
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions packages/fuselage/src/components/Message/Messages.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,16 @@ export const Default: ComponentStory<typeof Message> = () => (
pariatur. Consectetur adipiscing{' '}
<Message.Highlight variant='critical'>
highlighted text
</Message.Highlight>{' '}
</Message.Highlight>
touching text.{' '}
<Message.Mention clickable tag='@' variant='relevant'>
all
</Message.Mention>{' '}
elit, sed do eiusmod tempor incididunt ut labore et dolore magna
</Message.Mention>
. elit, sed do eiusmod tempor incididunt ut labore et dolore magna
<Message.Mention clickable tag='@' variant='other'>
Gabriel.Henriques
</Message.Mention>{' '}
aliqua. Ut enim ad minim veniam...
</Message.Mention>
. aliqua. Ut enim ad minim veniam...
</Message.Body>
<MessageReactions>
<MessageReactions.Reaction mine counter={1} />
Expand Down
4 changes: 2 additions & 2 deletions packages/fuselage/src/components/Message/Messages.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ $message-highlight-colors-background-other-color: theme(

display: inline-block;

padding-inline-start: lengths.padding(2);
padding-inline: lengths.padding(2);

white-space: nowrap;

Expand All @@ -348,7 +348,7 @@ $message-highlight-colors-background-other-color: theme(

z-index: -1;

width: calc(100% + lengths.padding(2));
width: 100%;
height: 18px;

content: '';
Expand Down

0 comments on commit 5d64e33

Please sign in to comment.