Skip to content

Commit

Permalink
fix: fixed post card border color issue (#640) (#677)
Browse files Browse the repository at this point in the history
Co-authored-by: Awais Ansari <79941147+awais-ansari@users.noreply.github.com>
  • Loading branch information
Lunyachek and awais-ansari committed Mar 8, 2024
1 parent 2dafb6a commit 5ca0042
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/discussions/posts/post-editor/PostTypeCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const PostTypeCard = ({
<label htmlFor={`post-type-${value}`} className="d-flex p-0 my-0 mr-3">
<Form.Radio value={value} id={`post-type-${value}`} className="sr-only">{type}</Form.Radio>
<Card
className={classNames('border-2 shadow-none', {
'border-primary': selected,
'border-light-400': !selected,
className={classNames('shadow-none', {
'border-primary-500-2': selected,
'border-light-400-2': !selected,
})}
style={{ cursor: 'pointer', width: `${enableInContextSidebar ? '10.021rem' : '14.25rem'}` }}
>
Expand Down
9 changes: 7 additions & 2 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,13 @@ header {
background-color: #e9e6e4 !important;
}

.border-2 {
border: 2px solid #cccccc !important;
.border-light-400-2 {
border: 2px solid $light-400 !important;
border-width: 2px !important;
}

.border-primary-500-2 {
border: 2px solid $primary-500 !important;
border-width: 2px !important;
}

Expand Down

0 comments on commit 5ca0042

Please sign in to comment.