ScottLogic / prompt-injection

Application which investigates defensive measures against prompt injection attacks on an LLM, with a focus on the exposure of external tools.
MIT License
15 stars 10 forks source link

Colour contrast readOnly and placeholder text #785

Closed dhinrichs-scottlogic closed 6 months ago

dhinrichs-scottlogic commented 7 months ago

Feature Request

Description

Ensure all color contrast passes, including disabled buttons, readOnly fields (e.g. config inputs) and placeholder text (e.g. chat input)

Screenshots

Image Image Image

Additional context

Colour contrast issues for placeholder text are easily missed by automated tools, but colour contrast ratios should still pass for placeholder text and inactive input text.

Acceptance criteria

GIVEN text/number inputs and buttons WHEN they are disabled, readonly or have placeholder text THEN the text to background contrast ratio is at least 4.5:1