mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 17:01:13 +00:00
fixed screenreader copy issue (#1173)
Co-authored-by: sunilyadav <v-yadavsunil@microsoft.com>
This commit is contained in:
committed by
GitHub
parent
b7daadee20
commit
d97b991378
@@ -25,6 +25,7 @@ export const OpenFullScreen: React.FunctionComponent = () => {
|
|||||||
<TextField label="Read and Write" readOnly defaultValue={readWriteUrl} />
|
<TextField label="Read and Write" readOnly defaultValue={readWriteUrl} />
|
||||||
<Stack horizontal tokens={{ childrenGap: 10 }}>
|
<Stack horizontal tokens={{ childrenGap: 10 }}>
|
||||||
<DefaultButton
|
<DefaultButton
|
||||||
|
ariaLabel={isReadWriteUrlCopy ? "Copied url" : "Copy"}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
copyToClipboard(readWriteUrl);
|
copyToClipboard(readWriteUrl);
|
||||||
setIsReadWriteUrlCopy(true);
|
setIsReadWriteUrlCopy(true);
|
||||||
@@ -43,6 +44,7 @@ export const OpenFullScreen: React.FunctionComponent = () => {
|
|||||||
<TextField label="Read Only" readOnly defaultValue={readUrl} />
|
<TextField label="Read Only" readOnly defaultValue={readUrl} />
|
||||||
<Stack horizontal tokens={{ childrenGap: 10 }}>
|
<Stack horizontal tokens={{ childrenGap: 10 }}>
|
||||||
<DefaultButton
|
<DefaultButton
|
||||||
|
ariaLabel={isReadUrlCopy ? "Copied url" : "Copy"}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setIsReadUrlCopy(true);
|
setIsReadUrlCopy(true);
|
||||||
copyToClipboard(readUrl);
|
copyToClipboard(readUrl);
|
||||||
|
|||||||
Reference in New Issue
Block a user