Skip to content

Commit

Permalink
make "MITx Online" mixed case (#5391)
Browse files Browse the repository at this point in the history
* make "MITx Online" mixed case

see mitodl/hq#3936 (comment)

* Making hero buttons consistent

* test

---------

Co-authored-by: Anna <[email protected]>
  • Loading branch information
pdpinch and annagav authored May 20, 2024
1 parent 57a5dd1 commit 3b243bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cms/templates/cms/program_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ <h1 class="title">
{% if page.program_subscribe_link %}
<a class="mdl-button hero-button"
href="{{ page.program_subscribe_link }}"
target="blank">Learn More</a>
target="blank">LEARN MORE</a>
{% else %}
{% if page.program.id == 2 %}
<a href="https://mitxonline.mit.edu/create-account/" class="mdl-button hero-button mdl-cell--hide-phone">
Enroll on MITx Online
ENROLL ON MITx ONLINE
</a>
{% else %}
{% if not authenticated %}
<a href="{% url 'signin' %}?program={{page.program.id}}" class="mdl-button hero-button mdl-cell--hide-phone">
Create Account {{page.program.id}}
CREATE ACCOUNT
</a>
<div class="log-in mdl-cell--hide-phone">
Already a Member?
Expand Down
1 change: 1 addition & 0 deletions static/scss/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
margin: 0 0 20px 0;
font-size: 16px;
font-weight: 300;
text-transform: none;
}

&.hero-button:hover, &.hero-button:focus, &.hero-button:active, &.hero-button:focus:not(:active) {
Expand Down
2 changes: 1 addition & 1 deletion ui/views_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ def test_no_courses(self):
self.assertIn("program", js_settings)
self.assertIn("courses", js_settings["program"])
self.assertEqual(len(js_settings["program"]["courses"]), 0)
self.assertContains(response, "Learn More")
self.assertContains(response, "LEARN MORE")
self.assertContains(response, program_subscribe_link)


Expand Down

0 comments on commit 3b243bd

Please sign in to comment.