Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: Source/web/resources/calendarPicker.js

Issue 552163002: AX: Calendar Picker: Add AX labels to MonthPopupButton and CalendarNavigationButtons. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/DateTimeChooserImpl.cpp ('k') | public/platform/WebLocalizedString.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/resources/calendarPicker.js
diff --git a/Source/web/resources/calendarPicker.js b/Source/web/resources/calendarPicker.js
index 81b54afa21874f0922f4d9046cb462c38bb65d7a..2459e401c4237a186e0039c67c54ad271412b12d 100644
--- a/Source/web/resources/calendarPicker.js
+++ b/Source/web/resources/calendarPicker.js
@@ -2763,6 +2763,7 @@ MonthPopupView.prototype.onClick = function(event) {
*/
function MonthPopupButton(maxWidth) {
View.call(this, createElement("button", MonthPopupButton.ClassNameMonthPopupButton));
+ this.element.setAttribute("aria-label", global.params.axShowMonthSelector);
/**
* @type {!Element}
@@ -2951,6 +2952,7 @@ function CalendarHeaderView(calendarPicker) {
this._previousMonthButton.attachTo(this);
this._previousMonthButton.on(CalendarNavigationButton.EventTypeButtonClick, this.onNavigationButtonClick);
this._previousMonthButton.on(CalendarNavigationButton.EventTypeRepeatingButtonClick, this.onNavigationButtonClick);
+ this._previousMonthButton.element.setAttribute("aria-label", global.params.axShowPreviousMonth);
/**
* @type {!CalendarNavigationButton}
@@ -2962,6 +2964,7 @@ function CalendarHeaderView(calendarPicker) {
this._todayButton.element.classList.add(CalendarHeaderView.ClassNameTodayButton);
var monthContainingToday = Month.createFromToday();
this._todayButton.setDisabled(monthContainingToday < this.calendarPicker.minimumMonth || monthContainingToday > this.calendarPicker.maximumMonth);
+ this._todayButton.element.setAttribute("aria-label", global.params.todayLabel);
/**
* @type {!CalendarNavigationButton}
@@ -2971,6 +2974,7 @@ function CalendarHeaderView(calendarPicker) {
this._nextMonthButton.attachTo(this);
this._nextMonthButton.on(CalendarNavigationButton.EventTypeButtonClick, this.onNavigationButtonClick);
this._nextMonthButton.on(CalendarNavigationButton.EventTypeRepeatingButtonClick, this.onNavigationButtonClick);
+ this._nextMonthButton.element.setAttribute("aria-label", global.params.axShowNextMonth);
if (global.params.isLocaleRTL) {
this._nextMonthButton.element.innerHTML = CalendarHeaderView._BackwardTriangle;
« no previous file with comments | « Source/web/DateTimeChooserImpl.cpp ('k') | public/platform/WebLocalizedString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698