From 1cf7ccc3348399935547900535bfcd93a62a79a5 Mon Sep 17 00:00:00 2001 From: Mark Sadecki Date: Thu, 19 Mar 2015 15:31:30 -0400 Subject: [PATCH] dropped element selector in CSS and test file --- common/test/acceptance/pages/lms/dashboard.py | 2 +- lms/static/sass/multicourse/_dashboard.scss | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/test/acceptance/pages/lms/dashboard.py b/common/test/acceptance/pages/lms/dashboard.py index 9aaeee09e8..278b9a3519 100644 --- a/common/test/acceptance/pages/lms/dashboard.py +++ b/common/test/acceptance/pages/lms/dashboard.py @@ -64,7 +64,7 @@ class DashboardPage(PageObject): @property def username(self): """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): """Get the enrollment mode for a given course on the dashboard. diff --git a/lms/static/sass/multicourse/_dashboard.scss b/lms/static/sass/multicourse/_dashboard.scss index 4815a80e21..edcdee011a 100644 --- a/lms/static/sass/multicourse/_dashboard.scss +++ b/lms/static/sass/multicourse/_dashboard.scss @@ -20,7 +20,7 @@ width: flex-grid(12); background: $dashboard-profile-color; - h1.user-name { + h2.user-name { overflow: hidden; margin: 0; padding: ($baseline*0.75) ($baseline/2); @@ -28,6 +28,7 @@ text-transform: none; text-wrap: nowrap; text-overflow: ellipsis; + text-align: center; font: 700 1.2em/1.2em $sans-serif; } }