Skip to content

Commit 5605bd8

Browse files
authored
feat: UI improvements (#318)
* feat: UI improvements - Minor fix for Back to My Records button - Decrease font size for the Questions about Learner Records title - Send Program Record modal window - checkboxes alignment * feat: After review - remove checkbox fix
1 parent fb1c2ad commit 5605bd8

3 files changed

Lines changed: 15 additions & 20 deletions

File tree

src/components/ProgramRecord/ProgramRecord.jsx

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import PropTypes from 'prop-types';
55
import { useParams } from 'react-router-dom';
66

77
import {
8-
Info, ArrowBack,
8+
Info, ChevronLeft,
99
} from '@openedx/paragon/icons';
1010
import {
11-
Alert, Container, Button, Hyperlink,
11+
Alert, Container, Hyperlink,
1212
} from '@openedx/paragon';
1313

1414
import { FormattedMessage } from '@edx/frontend-platform/i18n';
@@ -76,22 +76,17 @@ function ProgramRecord({ isPublic }) {
7676
};
7777

7878
const renderBackButton = () => (
79-
<Button
80-
variant="tertiary"
81-
iconBefore={ArrowBack}
82-
className="back-to-records"
79+
<Hyperlink
80+
destination={createCorrectInternalRoute('/')}
81+
variant="muted"
8382
>
84-
<Hyperlink
85-
destination={createCorrectInternalRoute('/')}
86-
variant="muted"
87-
>
88-
<FormattedMessage
89-
id="link.back.to.records"
90-
defaultMessage="Back to My Records"
91-
description="A link that takes the user back to their program records"
92-
/>
93-
</Hyperlink>
94-
</Button>
83+
<ChevronLeft />
84+
<FormattedMessage
85+
id="link.back.to.records"
86+
defaultMessage="Back to My Records"
87+
description="A link that takes the user back to their program records"
88+
/>
89+
</Hyperlink>
9590
);
9691

9792
const renderProgramDetails = () => (

src/components/ProgramRecord/RecordsHelp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Hyperlink } from '@openedx/paragon';
66
function RecordsHelp({ helpUrl }) {
77
return (
88
<section className="help">
9-
<h2>
9+
<h2 className="h5">
1010
<FormattedMessage
1111
id="help.section.header"
1212
defaultMessage="Questions about Learner Records?"

src/components/ProgramRecordsList/ProgramRecordsList.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,13 @@ function ProgramRecordsList() {
148148

149149
const renderHelp = () => (
150150
<div className="pl-3 pr-3 pt-4 pb-1">
151-
<h3 className="h5">
151+
<h2 className="h5">
152152
<FormattedMessage
153153
id="records.help.header"
154154
defaultMessage="Questions about Learner Records?"
155155
description="Header for the help section of Learner Records page"
156156
/>
157-
</h3>
157+
</h2>
158158
<FormattedMessage
159159
id="records.help.description"
160160
defaultMessage="To learn more about records you can "

0 commit comments

Comments
 (0)