diff --git a/lms/static/js/bookmarks/views/bookmark_button.js b/lms/static/js/bookmarks/views/bookmark_button.js index aae521ab3c..5c85ffdb12 100644 --- a/lms/static/js/bookmarks/views/bookmark_button.js +++ b/lms/static/js/bookmarks/views/bookmark_button.js @@ -5,9 +5,7 @@ return Backbone.View.extend({ errorMessage: gettext('An error has occurred. Please try again.'), - srAddBookmarkText: gettext('Click to add'), bookmarkText: gettext('Bookmark this page'), - srRemoveBookmarkText: gettext('Click to remove'), bookmarkedText: gettext('Bookmarked'), events: { @@ -88,12 +86,10 @@ this.$el.addClass('bookmarked'); this.$el.attr('aria-pressed', 'true'); this.$el.find('.bookmark-text').text(this.bookmarkedText); - this.$el.find('.bookmark-sr').text(this.srRemoveBookmarkText); } else { this.$el.removeClass('bookmarked'); this.$el.attr('aria-pressed', 'false'); this.$el.find('.bookmark-text').text(this.bookmarkText); - this.$el.find('.bookmark-sr').text(this.srAddBookmarkText); } }, diff --git a/lms/static/js/fixtures/bookmarks/bookmark_button.html b/lms/static/js/fixtures/bookmarks/bookmark_button.html index 7703174c10..1e536fdd14 100644 --- a/lms/static/js/fixtures/bookmarks/bookmark_button.html +++ b/lms/static/js/fixtures/bookmarks/bookmark_button.html @@ -6,7 +6,6 @@ diff --git a/lms/static/js/spec/courseware/bookmark_button_view_spec.js b/lms/static/js/spec/courseware/bookmark_button_view_spec.js index 69248b937a..179b157010 100644 --- a/lms/static/js/spec/courseware/bookmark_button_view_spec.js +++ b/lms/static/js/spec/courseware/bookmark_button_view_spec.js @@ -39,11 +39,9 @@ define(['backbone', 'jquery', 'underscore', 'edx-ui-toolkit/js/utils/spec-helper if (bookmarked) { expect(view.$el).toHaveAttr('aria-pressed', 'true'); expect(view.$el).toHaveClass('bookmarked'); - expect(view.$el.find('.bookmark-sr').text()).toBe('Click to remove'); } else { expect(view.$el).toHaveAttr('aria-pressed', 'false'); expect(view.$el).not.toHaveClass('bookmarked'); - expect(view.$el.find('.bookmark-sr').text()).toBe('Click to add'); } expect(view.$el.data('bookmarkId')).toBe('bilbo,usage_1'); }; diff --git a/lms/static/sass/views/_bookmarks.scss b/lms/static/sass/views/_bookmarks.scss index c2bffc38fd..b8ed6e5eb4 100644 --- a/lms/static/sass/views/_bookmarks.scss +++ b/lms/static/sass/views/_bookmarks.scss @@ -162,8 +162,4 @@ $bookmarked-icon: "\f02e"; // .fa-bookmark } - .bookmark-sr { - @include margin-right($baseline / 4); - } - } diff --git a/lms/templates/bookmark_button.html b/lms/templates/bookmark_button.html index 7f36bff8f1..6abaecca9f 100644 --- a/lms/templates/bookmark_button.html +++ b/lms/templates/bookmark_button.html @@ -5,7 +5,6 @@