fix: Broken keyboard nav with BorderRadius & BoxShadow (#13636)

This commit is contained in:
Aswath K 2022-05-06 16:54:33 +05:30 committed by GitHub
parent 1de19956e3
commit be6946773e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ const options = Object.keys(borderRadiusOptions).map((optionKey) => ({
key={optionKey}
openOnTargetFocus={false}
>
<button>
<button tabIndex={-1}>
<div
className="w-5 h-5 border-t-2 border-l-2 border-gray-500"
style={{ borderTopLeftRadius: borderRadiusOptions[optionKey] }}

View File

@ -20,7 +20,7 @@ const options = Object.keys(boxShadowOptions).map((optionKey) => ({
key={optionKey}
openOnTargetFocus={false}
>
<button>
<button tabIndex={-1}>
<div
className="flex items-center justify-center w-5 h-5 bg-white"
style={{ boxShadow: boxShadowOptions[optionKey] }}