Commit e1251bfe by Mark Sadecki

Merge pull request #7416 from edx/cptvitamin/UX-1838-dashboard-heading-structure-n-context

adds additional context for SR users and corrects heading order
parents 7f137487 58876edb
...@@ -64,7 +64,7 @@ class DashboardPage(PageObject): ...@@ -64,7 +64,7 @@ class DashboardPage(PageObject):
@property @property
def username(self): def username(self):
"""Return the displayed value for the user's username""" """Return the displayed value for the user's username"""
return self.q(css='h1.user-name').text[0] return self.q(css='.user-name').text[0]
def get_enrollment_mode(self, course_name): def get_enrollment_mode(self, course_name):
"""Get the enrollment mode for a given course on the dashboard. """Get the enrollment mode for a given course on the dashboard.
......
...@@ -20,15 +20,18 @@ ...@@ -20,15 +20,18 @@
width: flex-grid(12); width: flex-grid(12);
background: $dashboard-profile-color; background: $dashboard-profile-color;
h1.user-name { .user-name {
display: block;
overflow: hidden; overflow: hidden;
margin: 0; margin: 0;
padding: ($baseline*0.75) ($baseline/2); padding: ($baseline*0.75) ($baseline/2) 0;
color: $base-font-color; color: $base-font-color;
text-transform: none; text-transform: none;
text-wrap: nowrap; text-wrap: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
font: 700 1.2em/1.2em $sans-serif; text-align: center;
font-weight: 700;
line-height: 1.2em;
} }
} }
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<section class="profile-sidebar"> <section class="profile-sidebar">
<header class="profile"> <header class="profile">
<h1 class="user-name">${ user.username }</h1> <h2><span class="sr">${_("Username")}: </span><span class="user-name">${ user.username }</span></h2>
</header> </header>
<section class="user-info"> <section class="user-info">
<ul> <ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment