aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/visually-hidden/visually-hidden.module.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-10-04 18:16:55 +0200
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:14:41 +0100
commita724b4b38bacc631410627395b0d1190a0e8de0d (patch)
tree27bd2704fbaf2c3c7455e5cd424765df91db3d02 /src/components/atoms/visually-hidden/visually-hidden.module.scss
parent0e60743d140aff66eca6df712f653ee20f5d4ef3 (diff)
feat(components): add a VisuallyHidden component
Diffstat (limited to 'src/components/atoms/visually-hidden/visually-hidden.module.scss')
-rw-r--r--src/components/atoms/visually-hidden/visually-hidden.module.scss7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/atoms/visually-hidden/visually-hidden.module.scss b/src/components/atoms/visually-hidden/visually-hidden.module.scss
new file mode 100644
index 0000000..c616615
--- /dev/null
+++ b/src/components/atoms/visually-hidden/visually-hidden.module.scss
@@ -0,0 +1,7 @@
+@use "../../../styles/abstracts/mixins" as mix;
+
+.wrapper {
+ &:not(:focus-within, :active) {
+ @include mix.visually-hidden;
+ }
+}