diff --git a/src/_includes/base.liquid b/src/_includes/base.liquid index 269b6d9c..05ea0738 100644 --- a/src/_includes/base.liquid +++ b/src/_includes/base.liquid @@ -147,5 +147,6 @@ })() {{ content }} + {% render "partials/widgets/prompt-injection.liquid" %} \ No newline at end of file diff --git a/src/_includes/partials/widgets/prompt-injection.liquid b/src/_includes/partials/widgets/prompt-injection.liquid new file mode 100644 index 00000000..d7518839 --- /dev/null +++ b/src/_includes/partials/widgets/prompt-injection.liquid @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/styles/base/index.css b/src/assets/styles/base/index.css index 2e63936a..ec4f68f6 100644 --- a/src/assets/styles/base/index.css +++ b/src/assets/styles/base/index.css @@ -556,14 +556,25 @@ li { display: none !important; } -.screen-readers-only:not(:focus):not(:active) { +.hidden-visually { + border: 0; clip: rect(0 0 0 0); - clip-path: inset(50%); height: 1px; + margin: -1px; overflow: hidden; + padding: 0; position: absolute; white-space: nowrap; width: 1px; + + &:focus { + clip: auto; + height: auto; + margin: 0; + overflow: visible; + position: static; + width: auto; + } } .text-centered {