Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRDCDH-864 Fix broken aria references and contrast issue #291

Merged
merged 2 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions src/content/users/APITokenDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ const StyledTokenInput = styled(OutlinedInput)({
"& .MuiOutlinedInput-notchedOutline": {
borderRadius: "8px",
border: "1px solid #6B7294 !important",

}
});

Expand All @@ -81,7 +80,6 @@ const StyledGenerateButton = styled(Button)({
padding: "12px 7px !important",
borderRadius: "8px !important",
border: "1px solid #000 !important",
background: "#1D91AB !important",
color: "#FFFFFF",
textAlign: "center",
fontFamily: "'Nunito', 'Rubik', sans-serif !important",
Expand All @@ -91,9 +89,6 @@ const StyledGenerateButton = styled(Button)({
lineHeight: "24px !important",
letterSpacing: "0.32px !important",
textTransform: "none !important" as 'none',
"&:hover": {
background: "#1D91AB !important",
},
});

const StyledCopyTokenButton = styled(IconButton)(() => ({
Expand Down Expand Up @@ -222,7 +217,7 @@ const APITokenDialog: FC<Props> = ({
<StyledDialog
open={open}
onClose={handleCloseDialog}
title=""
aria-labelledby="api-token-header"
{...rest}
>
<GenericAlert open={!!changesAlert} severity={changesAlert?.severity} key="api-token-dialog-changes-alert">
Expand All @@ -236,10 +231,10 @@ const APITokenDialog: FC<Props> = ({
>
<CloseIconSvg />
</StyledCloseDialogButton>
<StyledHeader id="api-token-header" variant="h3">
<StyledHeader id="api-token-header" variant="h1">
API Token
</StyledHeader>
<StyledTitle id="api-token-title" variant="h6">
<StyledTitle id="api-token-title" variant="body1">
An API Token is required to utilize the Uploader CLI tool for file uploads.
<br />
<br />
Expand Down
5 changes: 3 additions & 2 deletions src/content/users/UploaderToolDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const UploaderToolDialog: FC<Props> = ({
<StyledDialog
open={open}
onClose={() => onClose?.()}
aria-labelledby="uploader-cli-header"
{...rest}
>
<StyledCloseDialogButton
Expand All @@ -107,11 +108,11 @@ const UploaderToolDialog: FC<Props> = ({
>
<CloseIconSvg />
</StyledCloseDialogButton>
<StyledHeader id="uploader-cli-header" variant="h3">
<StyledHeader id="uploader-cli-header" variant="h1">
Uploader CLI Tool
</StyledHeader>
<StyledDialogContent>
<StyledBodyText id="uploader-cli-body" variant="h6">
<StyledBodyText id="uploader-cli-body" variant="body1">
The Uploader CLI is a command-line interface tool provided for directly uploading data submission files from your workstation to the Data Hub cloud storage.
To download the tool and accompanying instructions, click on the Download button below.
</StyledBodyText>
Expand Down
Loading