Text Spacing 属性不适用于使用 Text Spacing Bookmarklet 的组合框中的列表项
Text Spacing properties are not applied for the list items in combo boxes using Text Spacing Bookmarklet
正在努力确保我的网站可以访问,其中一项要求是 text spacing criterion should be applied when a user invokes a text spacing bookmarklet. I've realized the issue is when a bookmarklet is triggered on the site it automatically changes the styling for the text elements to match the requirements but is not applied to items in the combo box because I've used select and input tags which according to this post 样式属性不能应用于输入元素,因此更改不会应用于组合框中的项目。
如何确保在调用小书签时文本间距也可以应用于组合框中的元素?谢谢
尝试实现这一点令人钦佩,但 WCAG 1.4.12 并不 要求 你这样做。该成功标准表示 if 用户应用这些样式,then 应该“内容或功能没有损失”。它并没有说如果用户应用那些样式,那么这些样式必须应用到页面上的每个元素。将样式应用于元素确实是浏览器的责任。
如果用户将自定义样式 sheet 应用于网页,例如
* { letter-spacing: 0.12em !important; }
那么如果 没有 应用于 <select>/<option>
元素,那是浏览器的问题。
只要您的页面在应用该样式后看起来不错(意思是“没有丢失内容或功能”),就可以了。
能够通过使用 angular 替代组件实现这一点,并且实现相同的实现并且更易于访问
正在努力确保我的网站可以访问,其中一项要求是 text spacing criterion should be applied when a user invokes a text spacing bookmarklet. I've realized the issue is when a bookmarklet is triggered on the site it automatically changes the styling for the text elements to match the requirements but is not applied to items in the combo box because I've used select and input tags which according to this post 样式属性不能应用于输入元素,因此更改不会应用于组合框中的项目。
如何确保在调用小书签时文本间距也可以应用于组合框中的元素?谢谢
尝试实现这一点令人钦佩,但 WCAG 1.4.12 并不 要求 你这样做。该成功标准表示 if 用户应用这些样式,then 应该“内容或功能没有损失”。它并没有说如果用户应用那些样式,那么这些样式必须应用到页面上的每个元素。将样式应用于元素确实是浏览器的责任。
如果用户将自定义样式 sheet 应用于网页,例如
* { letter-spacing: 0.12em !important; }
那么如果 没有 应用于 <select>/<option>
元素,那是浏览器的问题。
只要您的页面在应用该样式后看起来不错(意思是“没有丢失内容或功能”),就可以了。
能够通过使用 angular 替代组件实现这一点,并且实现相同的实现并且更易于访问