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

fix: adjust focus color for upload qr modal #442

Merged
merged 2 commits into from
Jul 16, 2024
Merged
Changes from 1 commit
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
5 changes: 3 additions & 2 deletions src/components/send/UploadQRModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ export const UploadQRModal = ({
maxSize={5}
onSizeError={handleSizeError}
onTypeError={handleTypeError}
tabIndex={-1}
classes='focus-within:!outline-theme-primary-600 rounded-2xl'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am using focus-within and forcing the class name due to the library not allowing the management of tab index or overriding their styles.

>
<Button variant='primary'>{t('PAGES.SEND.QR_MODAL.UPLOAD_QR')}</Button>
<Button variant='primary' tabIndex={-1}>{t('PAGES.SEND.QR_MODAL.UPLOAD_QR')}</Button>
</FileUploader>
</div>
)
Expand All @@ -157,6 +157,7 @@ export const UploadQRModal = ({
maxSize={5}
onSizeError={handleSizeError}
onTypeError={handleTypeError}
classes='focus-within:!outline-theme-primary-600 rounded-2xl'
>
<div className='h-50 w-[306px] cursor-pointer rounded-2xl border border-dashed border-theme-secondary-200 bg-theme-secondary-25 dark:border-theme-secondary-600 dark:bg-theme-secondary-800'>
<div className='relative flex items-center justify-center overflow-hidden'>
Expand Down
Loading