我正在尝试创建一个可访问的开关元素,但是我的可访问性报告中提到了Elements must have sufficient color contrast,原因是Element's background color could not be determined because it is overlapped by another element的标签元素。我仍然在学习可访问性方面,所以我不知道为什么我会收到这个警告。我尝试使用伪元素代替span,将z-index改为label,添加高对比度的背景色,但似乎没有任何帮助。我在这里错过了什么.switch {
--handle-