From 8c586eb3dca7d6e63eb127525024acfc51613f07 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Thu, 27 Jun 2024 15:22:57 -0700 Subject: [PATCH] chore: minor change --- src/_includes/base.liquid | 1 + .../partials/widgets/prompt-injection.liquid | 1 + src/assets/styles/base/index.css | 15 +++++++++++++-- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 src/_includes/partials/widgets/prompt-injection.liquid 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 {