Skip to content

Commit

Permalink
Enroll Now button styles (#2252)
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav authored Jun 13, 2024
1 parent 5991ed0 commit cc61b81
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
5 changes: 0 additions & 5 deletions frontend/public/scss/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@ a.btn.disabled {
border: 2px solid grey;
}

.btn-gradient-red {
background: linear-gradient(174deg, $brand-darker-bg, $brand-darker-bg) !important;
border: 1px solid $brand-darker-bg;
}

.btn-denim-blue {
background-color: $denim-blue;
border-color: $denim-blue;
Expand Down
6 changes: 3 additions & 3 deletions frontend/public/src/components/CourseProductDetailEnroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export class CourseProductDetailEnroll extends React.Component<
href={`${routes.login}?next=${encodeURIComponent(
window.location.pathname
)}`}
className="btn btn-primary btn-enrollment-button btn-lg btn-gradient-red highlight"
className="btn btn-primary btn-enrollment-button btn-lg btn-gradient-red-to-blue highlight"
>
Enroll now
</a>
Expand Down Expand Up @@ -467,7 +467,7 @@ export class CourseProductDetailEnroll extends React.Component<
(courseRuns && courseRuns.length > 1) ? (
<button
id="upgradeEnrollBtn"
className="btn btn-primary btn-enrollment-button btn-lg btn-gradient-red highlight enroll-now"
className="btn btn-primary btn-enrollment-button btn-lg btn-gradient-red-to-blue highlight enroll-now"
onClick={() => this.toggleUpgradeDialogVisibility()}
disabled={!run.is_enrollable}
>
Expand All @@ -479,7 +479,7 @@ export class CourseProductDetailEnroll extends React.Component<
<input type="hidden" name="run" value={run ? run.id : ""} />
<button
type="submit"
className="btn btn-primary btn-enrollment-button btn-gradient-red highlight enroll-now"
className="btn btn-primary btn-enrollment-button btn-gradient-red-to-blue highlight enroll-now"
disabled={!run.is_enrollable}
>
{isRunArchived(run) ? "Access Course Materials" : "Enroll Now"}
Expand Down
6 changes: 3 additions & 3 deletions frontend/public/src/components/ProgramProductDetailEnroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export class ProgramProductDetailEnroll extends React.Component<
{enrollment ? (
<Fragment>
<div
className={`btn btn-primary btn-enrollment-button btn-gradient-red highlight outline`}
className={`btn btn-primary btn-enrollment-button highlight outline`}
>
Enrolled &#10003;
</div>
Expand All @@ -417,14 +417,14 @@ export class ProgramProductDetailEnroll extends React.Component<
href={`${routes.login}?next=${encodeURIComponent(
window.location.pathname
)}`}
className="btn btn-primary btn-enrollment-button btn-lg btn-gradient-red highlight"
className="btn btn-primary btn-enrollment-button btn-lg btn-gradient-red-to-blue highlight"
>
Enroll now
</a>
) : (
<Fragment>
<button
className="btn btn-primary btn-enrollment-button btn-gradient-red highlight enroll-now"
className="btn btn-primary btn-enrollment-button btn-gradient-red-to-blue highlight enroll-now"
onClick={this.toggleUpgradeDialogVisibility}
>
Enroll now
Expand Down

0 comments on commit cc61b81

Please sign in to comment.