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
11 stars 9 forks source link

783 details summary buttons hover and redesign #869

Closed chriswilty closed 3 months ago

chriswilty commented 3 months ago

Description

Reimplementation of the native expanding <details> element, to be more accessible and screen-reader friendly.

TIP: hide whitespace when reviewing!

There are a few things wrong with the original, including the arrow icons being read out by screen readers, plus the way the control acts as a button but contains its own descriptive header and content, which was making life difficult as we also have a control toggle to turn a defence on/off, which we want always to be visible even when the details are collapsed.

All the glory belongs to @dhinrichs-scottlogic, I just tidied up a few things here and there.

Resolves #783

Screenshots

image

image

Checklist

Have you done the following?