Skip to content

Commit 9eaed2b

Browse files
fix: fixed question icon and its position (#662)
* fix: fixed question icon background for read questions * fix: fixed question icon position in post detailed view --------- Co-authored-by: sohailfatima <[email protected]>
1 parent 71a18c5 commit 9eaed2b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/discussions/posts/post/PostHeader.jsx

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import classNames from 'classnames';
55

66
import { useIntl } from '@edx/frontend-platform/i18n';
77
import { Avatar, Badge, Icon } from '@edx/paragon';
8-
import { Issue, Question } from '@edx/paragon/icons';
8+
import { Question } from '@edx/paragon/icons';
99

1010
import { AvatarOutlineAndLabelColors, ThreadType } from '../../../data/constants';
1111
import { AuthorLabel } from '../../common';
@@ -41,9 +41,9 @@ export const PostAvatar = React.memo(({
4141
<div className={avatarSpacing}>
4242
{postType === ThreadType.QUESTION && (
4343
<Icon
44-
src={read ? Issue : Question}
45-
className={classNames('position-absolute bg-white rounded-circle question-icon-size', {
46-
'question-icon-position': fromPostLink,
44+
src={Question}
45+
className={classNames('position-absolute rounded-circle question-icon-size', {
46+
'question-icon-position': fromPostLink, 'bg-white': !read, 'bg-light-300': read,
4747
})}
4848
/>
4949
)}
@@ -52,6 +52,7 @@ export const PostAvatar = React.memo(({
5252
[`outline-${outlineColor}`]: outlineColor,
5353
'outline-anonymous': !outlineColor,
5454
'mt-3 ml-2': postType === ThreadType.QUESTION && fromPostLink,
55+
'mt-2.5': postType === ThreadType.QUESTION && !fromPostLink,
5556
'avarat-img-position mt-17px': postType === ThreadType.QUESTION,
5657
})}
5758
style={{

0 commit comments

Comments
 (0)