Skip to content

Commit 68b59a0

Browse files
authored
[LG-5687] fix(message-prompts): update border color (#3282)
* style(message-prompts): update border-color * test(message-prompts): fix darkmode propagation * chore(message-prompts): changeset
1 parent eb4ff15 commit 68b59a0

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

.changeset/plain-clocks-remain.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@lg-chat/message-prompts': patch
3+
---
4+
5+
[LG-5687](https://jira.mongodb.org/browse/LG-5687): update border color from `green.dark1` to `green.dark2`

chat/message-prompts/src/MessagePrompt/MessagePrompt.styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
const baseStyles = css`
1212
display: block;
1313
padding: ${spacing[2]}px ${spacing[3]}px;
14-
border: 1px solid ${palette.green.dark1};
14+
border: 1px solid ${palette.green.dark2};
1515
border-radius: 12px;
1616
transition: all ${transitionDuration.slower}ms ease;
1717
box-shadow: none;

chat/message-prompts/src/MessagePrompts.stories.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import {
77
import { StoryFn, StoryObj } from '@storybook/react';
88
import { expect, userEvent, waitFor, within } from '@storybook/test';
99

10+
import LeafyGreenProvider from '@leafygreen-ui/leafygreen-provider';
11+
1012
import { MessagePrompt, MessagePrompts, MessagePromptsProps } from '.';
1113

1214
// eslint-disable-next-line no-console
@@ -24,6 +26,15 @@ const meta: StoryMetaType<typeof MessagePrompts> = {
2426
enableHideOnSelect: { control: 'boolean' },
2527
label: { control: 'text' },
2628
},
29+
decorators: [
30+
(Story: StoryFn, context) => {
31+
return (
32+
<LeafyGreenProvider darkMode={context?.args.darkMode}>
33+
<Story />
34+
</LeafyGreenProvider>
35+
);
36+
},
37+
],
2738
parameters: {
2839
default: 'LiveExample',
2940
controls: {
@@ -41,6 +52,13 @@ const meta: StoryMetaType<typeof MessagePrompts> = {
4152
onClickRefresh: testOnClickRefresh,
4253
},
4354
],
55+
decorator: (Instance, context) => {
56+
return (
57+
<LeafyGreenProvider darkMode={context?.args.darkMode}>
58+
<Instance />
59+
</LeafyGreenProvider>
60+
);
61+
},
4462
},
4563
},
4664
};

0 commit comments

Comments
 (0)