Skip to content

Commit 53f547d

Browse files
feat: update styling
1 parent 69f4578 commit 53f547d

File tree

7 files changed

+18
-25
lines changed

7 files changed

+18
-25
lines changed

src/components/PostPreviewPanel.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const PostPreviewPanel = ({
4949
variant="link"
5050
size="sm"
5151
onClick={() => setShowPreviewPane(true)}
52-
className={`dark-black-color font-style p-0 ${editExisting && 'mb-4.5'}`}
52+
className={`font-style p-0 ${editExisting && 'mb-4.5'}`}
5353
style={{ lineHeight: '26px' }}
5454
data-testid="show-preview-button"
5555
>

src/discussions/post-comments/comments/CommentsView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const CommentsView = ({ threadType }) => {
9292
variant="plain"
9393
block="true"
9494
className="card mb-4 px-0 border-0 py-10px mt-2 font-style font-weight-500
95-
line-height-24 font-size-14 purple-color"
95+
line-height-24 font-size-14"
9696
onClick={handleAddResponse}
9797
data-testid="add-response"
9898
>

src/discussions/post-comments/comments/comment/CommentEditor.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ const CommentEditor = ({
177177
default: intl.formatMessage(messages.submit),
178178
pending: intl.formatMessage(messages.submitting),
179179
}}
180-
className="ml-2 purple-bg border-purple-color"
180+
className="ml-2"
181181
variant="primary"
182182
onClick={handleSubmit}
183183
/>

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ import { createNewThread, fetchThread, updateExistingThread } from '../data/thun
5050
import messages from './messages';
5151
import PostTypeCard from './PostTypeCard';
5252

53+
import QuestionMarkIcon from './question-mark-icon.svg';
54+
import DiscussionIcon from '../post/chat-icon.svg';
55+
5356
const PostEditor = ({
5457
editExisting,
5558
}) => {
@@ -258,13 +261,13 @@ const PostEditor = ({
258261
value="discussion"
259262
selected={values.postType === 'discussion'}
260263
type={intl.formatMessage(messages.discussionType)}
261-
icon={<Post />}
264+
icon={<img src={DiscussionIcon} aria-hidden="true" />}
262265
/>
263266
<PostTypeCard
264267
value="question"
265268
selected={values.postType === 'question'}
266269
type={intl.formatMessage(messages.questionType)}
267-
icon={<Help />}
270+
icon={<img src={QuestionMarkIcon} aria-hidden="true" /> }
268271
/>
269272
</Form.RadioSet>
270273
<div className="d-flex flex-row my-4.5 justify-content-between">
@@ -412,7 +415,7 @@ const PostEditor = ({
412415
<FormikErrorFeedback name="comment" />
413416
</div>
414417
<PostPreviewPanel htmlNode={values.comment} isPost editExisting={editExisting} />
415-
<div className="d-flex flex-row mt-n4 w-75 purple-color font-style">
418+
<div className="d-flex flex-row mt-n4 w-75 font-style">
416419
{!editExisting && (
417420
<>
418421
<Form.Group>
@@ -458,7 +461,7 @@ const PostEditor = ({
458461
pending: intl.formatMessage(messages.submitting),
459462
}}
460463
state={submitting ? 'pending' : 'default'}
461-
className="ml-2 purple-bg"
464+
className="ml-2 submitButton"
462465
variant="primary"
463466
onClick={handleSubmit}
464467
/>
Lines changed: 5 additions & 0 deletions
Loading

src/discussions/posts/post/PostLink.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const PostLink = ({
7171
<div
7272
className={
7373
classNames(
74-
'd-flex flex-row pt-2 pb-2 px-4 border-purple-color position-relative',
74+
'd-flex flex-row pt-2 pb-2 px-4 position-relative',
7575
// { 'bg-light-300': isPostRead },
7676
{ 'post-summary-card-selected': id === selectedPostId },
7777
)
@@ -89,13 +89,13 @@ const PostLink = ({
8989
<div className="d-flex align-items-center pb-0 mb-0 flex-fill">
9090
<div className="text-truncate mr-1">
9191
<span className={classNames(
92-
'font-weight-bolder font-size-14 dark-black-color font-style align-bottom mr-1',
92+
'font-weight-bolder font-size-14 font-style align-bottom mr-1',
9393
{ 'font-weight-bolder': !read },
9494
)}
9595
>
9696
{title}
9797
</span>
98-
<span className="dark-black-color font-weight-normal font-size-14 font-style align-bottom">
98+
<span className="font-weight-normal font-size-14 font-style align-bottom">
9999
{isPostPreviewAvailable(previewBody) ? previewBody : intl.formatMessage(messages.postWithoutPreview)}
100100
</span>
101101
</div>

src/index.scss

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,6 @@ $fa-font-path: "~font-awesome/fonts";
2121
}
2222
}
2323

24-
.purple-color {
25-
color: #4600c7 !important;
26-
}
27-
.border-purple-color {
28-
border-color: #4600c7;
29-
}
30-
.purple-bg {
31-
background-color: #4600c7 !important;
32-
}
33-
.dark-black-color {
34-
color: #111827 !important;
35-
}
36-
.bg-light-grey {
37-
background-color: #f3f3f3;
38-
}
3924
.bla .text-staff-color {
4025
color: $warning-700;
4126
}

0 commit comments

Comments
 (0)