chore: trace-viewer a11y fixes (#29838)

This commit is contained in:
Max Schmitt 2024-03-07 16:02:31 +01:00 committed by GitHub
parent 006ee7f3b0
commit 591d327eac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -160,8 +160,8 @@ export const WorkbenchLoader: React.FunctionComponent<{
</div>
</div>}
{!isServer && !dragOver && !fileForLocalModeError && (!traceURLs.length || processingErrorMessage) && <div className='drop-target'>
<div className='processing-error'>{processingErrorMessage}</div>
<div className='title'>Drop Playwright Trace to load</div>
<div className='processing-error' aria-live='assertive'>{processingErrorMessage}</div>
<div className='title' role='heading'>Drop Playwright Trace to load</div>
<div>or</div>
<button onClick={() => {
const input = document.createElement('input');