Skip to content

Commit 5d64e33

Browse files
authored
fix(fuselage): Message Highlight touching text (#1056)
1 parent 9aa087a commit 5d64e33

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

packages/fuselage/src/components/Message/Messages.stories.tsx

+6-5
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,16 @@ export const Default: ComponentStory<typeof Message> = () => (
7070
pariatur. Consectetur adipiscing{' '}
7171
<Message.Highlight variant='critical'>
7272
highlighted text
73-
</Message.Highlight>{' '}
73+
</Message.Highlight>
74+
touching text.{' '}
7475
<Message.Mention clickable tag='@' variant='relevant'>
7576
all
76-
</Message.Mention>{' '}
77-
elit, sed do eiusmod tempor incididunt ut labore et dolore magna
77+
</Message.Mention>
78+
. elit, sed do eiusmod tempor incididunt ut labore et dolore magna
7879
<Message.Mention clickable tag='@' variant='other'>
7980
Gabriel.Henriques
80-
</Message.Mention>{' '}
81-
aliqua. Ut enim ad minim veniam...
81+
</Message.Mention>
82+
. aliqua. Ut enim ad minim veniam...
8283
</Message.Body>
8384
<MessageReactions>
8485
<MessageReactions.Reaction mine counter={1} />

packages/fuselage/src/components/Message/Messages.styles.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ $message-highlight-colors-background-other-color: theme(
327327

328328
display: inline-block;
329329

330-
padding-inline-start: lengths.padding(2);
330+
padding-inline: lengths.padding(2);
331331

332332
white-space: nowrap;
333333

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

349349
z-index: -1;
350350

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

354354
content: '';

0 commit comments

Comments
 (0)