这是关闭按钮的代码,它是模式弹出窗口的一部分.
<h2 class="sc-ejdXBC byjYiM MuiTypography-root MuiTypography-h6 sc-EoWXQ kOYWJk MuiDialogTitle-root" id="popupTitle">
Default Pop-UP Title
<button class="sc-dmqHEX dYAxeG MuiButtonBase-root sc-hLseeU gQXJSS MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeLarge sc-dlfzSu bdNite" tabindex="0" type="button" aria-label="Close" id="mui-4">
<div size="1" class="sc-fmSAUk jdsjjC">
<svg class="sc-hAtEyd bHRrTR MuiSvgIcon-root MuiSvgIcon-fontSizeMedium" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="CloseIcon">
<path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path>
</svg>
</div>
<span class="sc-beqWaB cEtDyT MuiTouchRipple-root"></span>
</button>
</h2>
NVDA是这样解读的:
DEFAULT POP-UP TITLE Close dialog
DEFAULT POP-UP TITLE Close heading
Close button heading level 2
DEFAULT POP-UP TITLE Close dialog
heading level 2 button Close
它应该是关闭按钮"标题2级按钮关闭"我try 给出了一些设置在NVDA,但它不起作用.