Skip to content

Commit

Permalink
fix: fixed post card border color issue (openedx#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
awais-ansari committed Jan 11, 2024
1 parent 6cacde4 commit 733046f
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 @@ -246,8 +246,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 733046f

Please sign in to comment.