diff --git a/cms/static/js/views/course_outline.js b/cms/static/js/views/course_outline.js index 3872aa2bca..d93755e191 100644 --- a/cms/static/js/views/course_outline.js +++ b/cms/static/js/views/course_outline.js @@ -220,9 +220,11 @@ define(['jquery', 'underscore', 'js/views/xblock_outline', 'common/js/components event.preventDefault(); this.publishXBlock(); }.bind(this)); - element.find('.highlights-button').click(function(event) { - event.preventDefault(); - this.highlightsXBlock(); + element.find('.highlights-button').on('click keydown', function(event) { + if (event.type === 'click' || event.which === 13 || event.which === 32) { + event.preventDefault(); + this.highlightsXBlock(); + } }.bind(this)); }, diff --git a/cms/static/sass/views/_outline.scss b/cms/static/sass/views/_outline.scss index 00a46c12fb..3634ef6524 100644 --- a/cms/static/sass/views/_outline.scss +++ b/cms/static/sass/views/_outline.scss @@ -639,6 +639,12 @@ .highlights-button { cursor: pointer; color: theme-color("primary"); + + // remove button styling + border: none; + background: none; + padding: 0; + font-weight: 600; } .number-highlights { diff --git a/cms/templates/js/course-outline.underscore b/cms/templates/js/course-outline.underscore index 22dbb071c1..5599a00181 100644 --- a/cms/templates/js/course-outline.underscore +++ b/cms/templates/js/course-outline.underscore @@ -203,10 +203,10 @@ if (is_proctored_exam) { <% if (xblockInfo.get('highlights_enabled') && course.get('self_paced') && xblockInfo.isChapter()) { %>