Skip to content

Commit 5ca0042

Browse files
fix: fixed post card border color issue (#640) (#677)
Co-authored-by: Awais Ansari <79941147+awais-ansari@users.noreply.github.com>
1 parent 2dafb6a commit 5ca0042

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
@@ -251,8 +251,13 @@ header {
251251
background-color: #e9e6e4 !important;
252252
}
253253

254-
.border-2 {
255-
border: 2px solid #cccccc !important;
254+
.border-light-400-2 {
255+
border: 2px solid $light-400 !important;
256+
border-width: 2px !important;
257+
}
258+
259+
.border-primary-500-2 {
260+
border: 2px solid $primary-500 !important;
256261
border-width: 2px !important;
257262
}
258263

0 commit comments

Comments
 (0)