Commit 9ef9bc6e by clrux

Merge pull request #11129 from edx/clrux/ac-201

LMS: darkening a gray on the profile page
parents db8b61bb 652e4ce0
...@@ -253,10 +253,6 @@ class LearnerProfilePage(FieldsMixin, PageObject): ...@@ -253,10 +253,6 @@ class LearnerProfilePage(FieldsMixin, PageObject):
self.wait_for_ajax() self.wait_for_ajax()
self.wait_for_element_visibility('.image-wrapper', "remove button is visible") self.wait_for_element_visibility('.image-wrapper', "remove button is visible")
self.browser.execute_script('$(".u-field-remove-button").css("opacity",1);')
self.mouse_hover(self.browser.find_element_by_css_selector('.image-wrapper'))
self.wait_for_element_visibility('.u-field-remove-button', "remove button is visible")
self.q(css='.u-field-remove-button').first.click() self.q(css='.u-field-remove-button').first.click()
self.wait_for_ajax() self.wait_for_ajax()
......
...@@ -767,7 +767,6 @@ class LearnerProfileA11yTest(LearnerProfileTestMixin, WebAppTest): ...@@ -767,7 +767,6 @@ class LearnerProfileA11yTest(LearnerProfileTestMixin, WebAppTest):
profile_page.a11y_audit.config.set_rules({ profile_page.a11y_audit.config.set_rules({
"ignore": [ "ignore": [
'color-contrast', # TODO: AC-232
'skip-link', # TODO: AC-179 'skip-link', # TODO: AC-179
'link-href', # TODO: AC-231 'link-href', # TODO: AC-231
], ],
......
...@@ -39,8 +39,6 @@ ...@@ -39,8 +39,6 @@
@mixin show-hover-state() { @mixin show-hover-state() {
opacity: 1; opacity: 1;
background-color: $shadow-d2;
border-radius: ($baseline/4);
} }
@function em($pxval, $base: 16) { @function em($pxval, $base: 16) {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
border-radius: 3px; border-radius: 3px;
span { span {
color: $gray-l1; color: $gray;
} }
&:hover { &:hover {
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
position: relative; position: relative;
.image-frame { .image-frame {
display: block;
position: relative; position: relative;
width: $profile-image-dimension; width: $profile-image-dimension;
height: $profile-image-dimension; height: $profile-image-dimension;
...@@ -50,19 +51,27 @@ ...@@ -50,19 +51,27 @@
} }
.u-field-upload-button { .u-field-upload-button {
width: $profile-image-dimension;
height: $profile-image-dimension;
position: absolute; position: absolute;
top: 0; top: 0;
opacity: 0; width: $profile-image-dimension;
height: $profile-image-dimension;
border-radius: ($baseline/4);
border: 2px dashed transparent;
background: rgba(229,241,247, .8);
color: $link-color;
text-shadow: none;
@include transition(all $tmg-f1 ease-in-out 0s); @include transition(all $tmg-f1 ease-in-out 0s);
opacity: 0;
z-index: 6;
i { i {
color: $white; color: $link-color;
} }
&:focus { &:focus,
&:hover {
@include show-hover-state(); @include show-hover-state();
border-color: $link-color;
} }
} }
...@@ -70,50 +79,34 @@ ...@@ -70,50 +79,34 @@
@include show-hover-state(); @include show-hover-state();
} }
.upload-button-icon, .upload-button-title { .upload-button-icon,
text-align: center; .upload-button-title {
transform: translateY(35px);
-webkit-transform: translateY(35px);
display: block; display: block;
color: $white;
margin-bottom: ($baseline/4); margin-bottom: ($baseline/4);
@include transform(translateY(35px));
line-height: 1.3em; line-height: 1.3em;
text-align: center;
z-index: 7;
} }
.upload-button-input { .upload-button-input {
width: $profile-image-dimension;
height: 100%;
position: absolute; position: absolute;
top: 0; top: -($profile-image-dimension);
@include left(0); @include left(0);
opacity: 0; width: $profile-image-dimension;
height: 100%;
cursor: pointer; cursor: pointer;
z-index: 5;
outline: 0;
} }
.u-field-remove-button { .u-field-remove-button {
width: $profile-image-dimension;
height: $baseline;
opacity: 0;
position: relative; position: relative;
margin-top: 2px; display: block;
width: $profile-image-dimension;
margin-top: ($baseline / 4);
padding: ($baseline / 5);
text-align: center; text-align: center;
&:active {
box-shadow: none;
outline: 0;
}
&:focus {
@include show-hover-state();
box-shadow: none;
outline: 0;
border: 2px dashed $link-color !important;
}
}
&:hover, &:focus {
.u-field-upload-button, .u-field-remove-button {
@include show-hover-state();
}
} }
} }
} }
......
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