From dccfc72e73770190d0bfe01a400274e39803aaa6 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Sat, 24 Jun 2023 19:44:22 -0400 Subject: [PATCH] fix(a11y): Change image remove button to true button element --- src/assets/css/main.css | 5 +---- src/shared/components/common/image-upload-form.tsx | 8 ++++++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/assets/css/main.css b/src/assets/css/main.css index d61dafda..a93055ed 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -275,10 +275,7 @@ hr { } .mini-overlay { - position: absolute; - top: 0; - right: 0; - padding: 2px; + display: block; height: 1.5em; width: 1.5em; background: rgba(0, 0, 0, 0.4); diff --git a/src/shared/components/common/image-upload-form.tsx b/src/shared/components/common/image-upload-form.tsx index 5f68ea54..f217cfab 100644 --- a/src/shared/components/common/image-upload-form.tsx +++ b/src/shared/components/common/image-upload-form.tsx @@ -39,7 +39,9 @@ export class ImageUploadForm extends Component< > {this.props.imageSrc ? ( + {/* TODO: Create "Current Iamge" translation for alt text */} - - + ) : ( {this.props.uploadTitle}