Skip to content

Commit 4d616de

Browse files
author
lyndaidaii
committed
rm switch
1 parent b399a4e commit 4d616de

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/NuGetGallery/Scripts/gallery/page-display-package.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,7 @@ $(function () {
9797
window.nuget.copyTextToClipboard(text, copyButton);
9898
copyButton.popover('show');
9999
//This is workaround for Narrator announce the status changes of copy button to achieve accessibility.
100-
switch (copyButton.attr('aria-pressed')) {
101-
case 'false':
102-
copyButton.attr('aria-pressed', 'true');
103-
break;
104-
case 'true':
105-
copyButton.attr('aria-pressed', 'true');
106-
break;
107-
default:
108-
copyButton.attr('aria-pressed', 'false');
109-
}
100+
copyButton.attr('aria-pressed', 'true');
110101
setTimeout(function () {
111102
copyButton.popover('destroy');
112103
}, 1000);

0 commit comments

Comments
 (0)