Skip to content

Commit

Permalink
add title for color box (microsoft#19121)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanrenmsft authored Apr 15, 2022
1 parent 794daa3 commit 5ec567a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/sql/base/browser/ui/colorbox/colorbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export class Colorbox extends Widget {
}
if (opts.label) {
this.domNode.setAttribute('aria-label', opts.label);
this.domNode.title = opts.label;
}

container.appendChild(this.domNode);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class ServerGroupDialog extends Modal {
const colorColorBox = new Colorbox(container, {
name: 'server-group-color',
class: ['server-group-color'],
label: `Colobox Color: ${color}`,
label: localize('serverGroup.colorValue', "Color: {0}", color),
});

this._register(colorColorBox.onSelect((viaKeyboard) => {
Expand Down

0 comments on commit 5ec567a

Please sign in to comment.