Closed brianteeman closed 3 months ago
I know it's a little unsightly, but decided to leave it as is for simplicity.
The inline
prop changes the CSS styles applied to errors. Anything that is set to inline: true
it changes the background colour. Which isn't helpful for contrast ruleset. I thought it was minor, so i didn't want to refactor it too much.
results.push({
element: name,
type: Constants.Global.ERROR,
content: Lang.sprintf('CONTRAST_ERROR', cratio, sanitizedText),
inline: false,
position: 'beforebegin',
});
Screenshot attached when inline
set to true
.
As you can see the css that highlights the text breaks the layout which no other sa11y indicator does.