(colorText)
| 302 | } |
| 303 | |
| 304 | function isReddishColor(colorText) { |
| 305 | const channels = parseCssColorChannels(colorText); |
| 306 | if (!channels) return false; |
| 307 | const { r, g, b, a = 1 } = channels; |
| 308 | if (a <= 0.05) return false; |
| 309 | return r >= 120 && r >= g + 35 && r >= b + 35; |
| 310 | } |
| 311 | |
| 312 | function getStep9ErrorVisualSignals(element, className = '') { |
| 313 | const signals = []; |
no test coverage detected