Remove tabindex of -1 on upload image input in the write a post editor (#10543)

* Remove tabindex of -1 on upload image input in the write a post editor

* Remove negative tabindex on image uploader's outer button

* Give tabindex of -1 to outer button on image uploader

* Update buttons.scss
This commit is contained in:
Manaswini 2020-10-09 01:27:22 +05:30 committed by GitHub
parent 2c10fb0417
commit e920155a93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,8 @@
&[href]:focus,
&:hover:enabled,
&:active:enabled,
&:focus:enabled {
&:focus:enabled,
&:focus-within {
background-color: var(--bg-hover);
border-color: var(--border-hover);
box-shadow: var(--shadow-hover);

View file

@ -146,7 +146,6 @@ export const ImageUploader = () => {
multiple
accept="image/*"
data-max-file-size-mb="25"
tabIndex="-1"
aria-label="Upload an image"
/>
</Button>