Windows高对比度模式下的垫子形式字段问题

时间:2018-09-26 23:28:45

标签: css material-design accessibility angular-material2

在以高对比度模式构建的Windows 10中使用mat-form-field时,从边框顶部创建的空白空间(透明的)会覆盖其颜色,并变成完全白色的条。这就产生了一个问题,因为当您将焦点放在该字段上时,用作描述的白色占位符会移入白色条(在普通视图中应该是透明的),而白色文本会融合到现在的白色条中,从而使其变得不清晰。 / p>

是否有一种方法可以防止这种情况被覆盖,因为在高对比度模式下将焦点切换到该字段的用户将无法再看到移至白色文本上方的占位符?

这里有其材料的角材料io页面 https://material.angular.io/components/form-field/overview

High contrast mode of the documentation page, as you can see the transparent padding space is now pure white

I have changed one field to say "I have entered something" but notice how the placeholder is completely missing, this is because the white text of the placeholder is sitting on the newly white bar

0 个答案:

没有答案