Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
e145d7f8
Commit
e145d7f8
authored
Jun 30, 2015
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8699 from open-craft/sso-a11y
Improve screen reader user experience on logistration page
parents
a9c67c56
49d200c7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
4 deletions
+19
-4
lms/static/js/student_account/views/LoginView.js
+1
-1
lms/static/js/student_account/views/RegisterView.js
+1
-1
lms/static/sass/views/_login-register.scss
+4
-0
lms/templates/student_account/login.underscore
+11
-1
lms/templates/student_account/register.underscore
+2
-1
No files found.
lms/static/js/student_account/views/LoginView.js
View file @
e145d7f8
...
...
@@ -93,7 +93,7 @@ var edx = edx || {};
},
thirdPartyAuth
:
function
(
event
)
{
var
providerUrl
=
$
(
event
.
t
arget
).
data
(
'provider-url'
)
||
''
;
var
providerUrl
=
$
(
event
.
currentT
arget
).
data
(
'provider-url'
)
||
''
;
if
(
providerUrl
)
{
window
.
location
.
href
=
providerUrl
;
...
...
lms/static/js/student_account/views/RegisterView.js
View file @
e145d7f8
...
...
@@ -62,7 +62,7 @@ var edx = edx || {};
},
thirdPartyAuth
:
function
(
event
)
{
var
providerUrl
=
$
(
event
.
t
arget
).
data
(
'provider-url'
)
||
''
;
var
providerUrl
=
$
(
event
.
currentT
arget
).
data
(
'provider-url'
)
||
''
;
if
(
providerUrl
)
{
window
.
location
.
href
=
providerUrl
;
...
...
lms/static/sass/views/_login-register.scss
View file @
e145d7f8
...
...
@@ -385,6 +385,10 @@ $sm-btn-linkedin: #0077b5;
color: $white;
}
span {
color: inherit;
}
&:hover,
&:focus {
background-image: none;
...
...
lms/templates/student_account/login.underscore
View file @
e145d7f8
...
...
@@ -35,6 +35,15 @@
</h2>
</div>
<p class="sr">
<% if ( context.providers.length > 0 && !context.currentProvider || context.hasSecondaryProviders ) { %>
<%- gettext("Sign in here using your email address and password, or use one of the providers listed below.") %>
<% } else { %>
<%- gettext("Sign in here using your email address and password.") %>
<% } %>
<%- gettext("If you do not yet have an account, use the button below to register.") %>
</p>
<%= context.fields %>
<button type="submit" class="action action-primary action-update js-login login-button"><%- gettext("Sign in") %></button>
...
...
@@ -51,7 +60,8 @@
if ( provider.loginUrl ) { %>
<button type="button" class="button button-primary button-<%- provider.id %> login-provider login-<%- provider.id %>" data-provider-url="<%- provider.loginUrl %>">
<div class="icon fa <%- provider.iconClass %>" aria-hidden="true"></div>
<%- provider.name %>
<span aria-hidden="true"><%- provider.name %></span>
<span class="sr"><%- _.sprintf( gettext("Sign in with %(providerName)s"), {providerName: provider.name} ) %></span>
</button>
<% }
}); %>
...
...
lms/templates/student_account/register.underscore
View file @
e145d7f8
...
...
@@ -31,7 +31,8 @@
if ( provider.registerUrl ) { %>
<button type="button" class="button button-primary button-<%- provider.id %> login-provider register-<%- provider.id %>" data-provider-url="<%- provider.registerUrl %>">
<span class="icon fa <%- provider.iconClass %>" aria-hidden="true"></span>
<%- provider.name %>
<span aria-hidden="true"><%- provider.name %></span>
<span class="sr"><%- _.sprintf( gettext("Create account using %(providerName)s."), {providerName: provider.name} ) %></span>
</button>
<% }
}); %>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment