提交 e909a0d9 编写于 作者: B Benjamin Pasero

fix #52201

上级 1ce43ea9
......@@ -139,8 +139,12 @@ export class FeedbackDropdown extends Dropdown {
$('h2.title').text(nls.localize("label.sendASmile", "Tweet us your feedback.")).appendTo($form);
const cancelBtn = $('div.cancel').attr('tabindex', '0');
cancelBtn.on(dom.EventType.MOUSE_OVER, () => {
const closeBtn = $('div.cancel').attr({
'tabindex': '0',
'role': 'button',
'title': nls.localize('close', "Close")
});
closeBtn.on(dom.EventType.MOUSE_OVER, () => {
const theme = this.themeService.getTheme();
let darkenFactor: number;
switch (theme.type) {
......@@ -153,13 +157,13 @@ export class FeedbackDropdown extends Dropdown {
}
if (darkenFactor) {
cancelBtn.getHTMLElement().style.backgroundColor = darken(theme.getColor(editorWidgetBackground), darkenFactor)(theme).toString();
closeBtn.getHTMLElement().style.backgroundColor = darken(theme.getColor(editorWidgetBackground), darkenFactor)(theme).toString();
}
});
cancelBtn.on(dom.EventType.MOUSE_OUT, () => {
cancelBtn.getHTMLElement().style.backgroundColor = null;
closeBtn.on(dom.EventType.MOUSE_OUT, () => {
closeBtn.getHTMLElement().style.backgroundColor = null;
});
this.invoke(cancelBtn, () => {
this.invoke(closeBtn, () => {
this.hide();
}).appendTo($form);
......@@ -178,7 +182,8 @@ export class FeedbackDropdown extends Dropdown {
this.smileyInput = $('div').addClass('sentiment smile').attr({
'aria-checked': 'false',
'aria-label': nls.localize('smileCaption', "Happy"),
'aria-label': nls.localize('smileCaption', "Happy Feedback Sentiment"),
'title': nls.localize('smileCaption', "Happy Feedback Sentiment"),
'tabindex': 0,
'role': 'checkbox'
});
......@@ -186,7 +191,8 @@ export class FeedbackDropdown extends Dropdown {
this.frownyInput = $('div').addClass('sentiment frown').attr({
'aria-checked': 'false',
'aria-label': nls.localize('frownCaption', "Sad"),
'aria-label': nls.localize('frownCaption', "Sad Feedback Sentiment"),
'title': nls.localize('frownCaption', "Sad Feedback Sentiment"),
'tabindex': 0,
'role': 'checkbox'
});
......@@ -254,6 +260,7 @@ export class FeedbackDropdown extends Dropdown {
this.sendButton.label = nls.localize('tweet', "Tweet");
this.$sendButton = new Builder(this.sendButton.element);
this.$sendButton.addClass('send');
this.$sendButton.title(nls.localize('tweetFeedback', "Tweet Feedback"));
this.toDispose.push(attachButtonStyler(this.sendButton, this.themeService));
this.sendButton.onDidClick(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册