fix(builder): phase-1 polish a11y follow-ups (dropzone keyboard, badge name, icon aria)
This commit is contained in:
@@ -118,9 +118,7 @@ export const AssetsPanel: React.FC = () => {
|
||||
onDrop={handleDrop}
|
||||
onDragOver={handleDragOver}
|
||||
onDragLeave={handleDragLeave}
|
||||
onClick={assets.length === 0 ? () => fileInputRef.current?.click() : undefined}
|
||||
role={assets.length === 0 ? 'button' : undefined}
|
||||
tabIndex={assets.length === 0 ? 0 : undefined}
|
||||
{...(assets.length === 0 ? clickableProps(() => fileInputRef.current?.click()) : {})}
|
||||
style={{
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
|
||||
@@ -394,7 +394,7 @@ export const PagesPanel: React.FC = () => {
|
||||
cursor: 'pointer',
|
||||
}}
|
||||
>
|
||||
<i className="fa fa-trash" />
|
||||
<i className="fa fa-trash" aria-hidden="true" />
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user