Skip to content

Commit 733046f

Browse files
authored
fix: fixed post card border color issue (#640)
1 parent 6cacde4 commit 733046f

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/discussions/posts/post-editor/PostTypeCard.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ const PostTypeCard = ({
1919
<label htmlFor={`post-type-${value}`} className="d-flex p-0 my-0 mr-3">
2020
<Form.Radio value={value} id={`post-type-${value}`} className="sr-only">{type}</Form.Radio>
2121
<Card
22-
className={classNames('border-2 shadow-none', {
23-
'border-primary': selected,
24-
'border-light-400': !selected,
22+
className={classNames('shadow-none', {
23+
'border-primary-500-2': selected,
24+
'border-light-400-2': !selected,
2525
})}
2626
style={{ cursor: 'pointer', width: `${enableInContextSidebar ? '10.021rem' : '14.25rem'}` }}
2727
>

src/index.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,13 @@ header {
246246
background-color: #e9e6e4 !important;
247247
}
248248

249-
.border-2 {
250-
border: 2px solid #cccccc !important;
249+
.border-light-400-2 {
250+
border: 2px solid $light-400 !important;
251+
border-width: 2px !important;
252+
}
253+
254+
.border-primary-500-2 {
255+
border: 2px solid $primary-500 !important;
251256
border-width: 2px !important;
252257
}
253258

0 commit comments

Comments
 (0)