Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[web][photos] Preserve PIN keyboard focus and step semantics

AswinAsokc52f7744c0b7
diff --git a/web/apps/photos/src/components/collections/AlbumCastDialog.tsx b/web/apps/photos/src/components/collections/AlbumCastDialog.tsx
index f694ea1dc6..758e329e92 100644
--- a/web/apps/photos/src/components/collections/AlbumCastDialog.tsx
+++ b/web/apps/photos/src/components/collections/AlbumCastDialog.tsx
@@ -312,6 +312,7 @@ const AlbumCastDialogContents: React.FC<AlbumCastDialogProps> = ({
</FocusVisibleUnstyledButton>
<Stack
component="ol"
+ role="list"
sx={{ listStyle: "none", m: 0, p: 0, gap: "14px" }}
>
<Stack
@@ -319,7 +320,7 @@ const AlbumCastDialogContents: React.FC<AlbumCastDialogProps> = ({
direction="row"
sx={{ gap: "12px", alignItems: "flex-start" }}
>
- <Box component="span" aria-hidden sx={stepNumberSx}>
+ <Box component="span" sx={stepNumberSx}>
1
</Box>
<Typography sx={instructionSx}>
@@ -343,7 +344,7 @@ const AlbumCastDialogContents: React.FC<AlbumCastDialogProps> = ({
direction="row"
sx={{ gap: "12px", alignItems: "flex-start" }}
>
- <Box component="span" aria-hidden sx={stepNumberSx}>
+ <Box component="span" sx={stepNumberSx}>
2
</Box>
<Typography sx={instructionSx}>
diff --git a/web/packages/base/components/SingleInputForm.tsx b/web/packages/base/components/SingleInputForm.tsx
index 8eb0100ef1..c7a62d1622 100644
--- a/web/packages/base/components/SingleInputForm.tsx
+++ b/web/packages/base/components/SingleInputForm.tsx
@@ -137,10 +137,7 @@ export const SingleInputForm: React.FC<SingleInputFormProps> = ({
<ButtonBase
onClick={onCancel}
disabled={formik.isSubmitting}
- sx={[
- v2CancelButtonSx,
- variant === "people" && peopleActionFocusSx,
- ]}
+ sx={[v2CancelButtonSx, peopleActionFocusSx]}
>
{t("cancel")}
</ButtonBase>
@@ -148,10 +145,7 @@ export const SingleInputForm: React.FC<SingleInputFormProps> = ({
<ButtonBase
type="submit"
disabled={formik.isSubmitting}
- sx={[
- v2SubmitButtonSx,
- variant === "people" && peopleActionFocusSx,
- ]}
+ sx={[v2SubmitButtonSx, peopleActionFocusSx]}
>
{formik.isSubmitting ? (
<CircularProgress