gpt4 book ai didi

macos - Apple 语音问题的可访问性与字段集图例

转载 作者:行者123 更新时间:2023-12-03 04:02:48 25 4
gpt4 key购买 nike

我使用的是 Mac (10.8.5) 和 Safari [6.2.4]。我创建了一个字段集来对我的输入进行分组,并向其中添加了图例文本。我还应用了 css 从 UI 中隐藏图例 - 但图例和标签在 DOM 中可用。

Windows/IE 上的 NVDA 按预期工作正常。它读取字段集图例并读取输入的标签。

但在上述 Mac/Safari 组合中,Apple Voice over 无法读取图例。与 Mac/Safari 版本有什么关系吗?

  <fieldset >
<legend class="screen-read-only">Please sign in to this application</legend>

<div >
<div >
<label for="USER" class="screen-read-only">Enter your email or username here to test screen reader in MAC</label>
<input class="no-inline-checker ng-pristine ng-invalid ng-invalid-required ng-touched" tabindex="0" type="text" id="USER" name="USER" placeholder="Username or Email Address" data-ng-model="email" required="" data-autocorrect="off" data-autocapitalize="off" data-test-id="myr-signIn-emailAddress" aria-required="true" aria-invalid="true">
<span class="inline-checker icon-error sign-in ng-hide" data-ng-show="submitted &amp;&amp; form.USER.$error.required" aria-hidden="true"></span>
</div>
</div>
<div class="row overrite-margin">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6"><div class="myr-remember-me row"><span data-test-id="myr-singin-rememberMe" class="myr-checkbox col-xs-1" tabindex="0"><input data-ng-model="rememberMe" type="checkbox" name="rememberMe" id="rememberMe" class="myr-checkbox-input ng-pristine ng-untouched ng-valid" tabindex="0" aria-checked="false" aria-invalid="false"> <label for="rememberMe" class="myr-checkbox-box"><span class="screen-read-only">Remember me checkbox</span></label></span>
<span translate="_remember_me">Remember Me</span></div></div>
</div>
</fieldset>

最佳答案

根据 PowerMapper 的说法,这个问题已在 OSX 10.11 中得到解决:

VoiceOver OS X Better - caused problems in VoiceOver OSX 10.10, but now OK in VoiceOver OSX 10.11

VoiceOver OSX 10.10 和 Safari 8.0.6 的输出:

Legend not read - no indication of what Yes/No choices are for

包含的音频样本说明了这一点:

Yes, selected radio button, one of two. Yes, selected radio button, one of two.

PowerMapper 测试代码:

<fieldset>
<legend>I agree to terms and conditions</legend>
<label><input name='radio_with_legend1' type='radio' checked='checked'>Yes</label>
<label><input name='radio_with_legend1' type='radio'>No</label>
</fieldset>
<fieldset>
<legend>Sign me up to the newsletter</legend>
<label><input name='radio_with_legend2' type='radio' checked='checked'>Yes</label>
<label><input name='radio_with_legend2' type='radio'>No</label>
</fieldset>

来源:https://www.powermapper.com/tests/screen-readers/labelling/fieldset-with-yes-no-radio-buttons/

关于macos - Apple 语音问题的可访问性与字段集图例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43506791/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com