diff --git a/src/components/ambassadorButton/AmbassadorButton.tsx b/src/components/ambassadorButton/AmbassadorButton.tsx
index 7420b2c..70037af 100644
--- a/src/components/ambassadorButton/AmbassadorButton.tsx
+++ b/src/components/ambassadorButton/AmbassadorButton.tsx
@@ -25,6 +25,7 @@ export default function AmbassadorButton(props: AmbassadorButtonProps) {
className={classes(styles.ambassador, className)}
id={ambassadorKey}
onClick={onClick}
+ type="button"
>
{props.onClose && (
-
+
+
)}
diff --git a/src/components/ambassadorCard/ambassadorCard.module.scss b/src/components/ambassadorCard/ambassadorCard.module.scss
index edb432b..9486860 100644
--- a/src/components/ambassadorCard/ambassadorCard.module.scss
+++ b/src/components/ambassadorCard/ambassadorCard.module.scss
@@ -84,14 +84,18 @@
right: 0.25rem;
transform: translateY(-50%);
width: 2rem;
+
+ appearance: none;
display: block;
font-size: 1.5rem;
line-height: 1.1;
+ color: $primary-text;
cursor: pointer;
text-align: center;
transition: $transition color;
- &:hover {
+ &:hover,
+ &:focus {
color: $outline-color;
}
}
diff --git a/src/pages/overlay/components/buttons/buttons.module.scss b/src/pages/overlay/components/buttons/buttons.module.scss
index 4e182a5..4586c80 100644
--- a/src/pages/overlay/components/buttons/buttons.module.scss
+++ b/src/pages/overlay/components/buttons/buttons.module.scss
@@ -23,8 +23,12 @@
transition-property: outline, filter;
&:hover,
+ &:focus,
&.highlighted {
outline: $outline;
+ }
+
+ &:hover {
filter: brightness(1.2);
}
diff --git a/src/pages/overlay/components/overlay/ambassadors/ambassadors.module.scss b/src/pages/overlay/components/overlay/ambassadors/ambassadors.module.scss
index 46eac10..1ab739a 100644
--- a/src/pages/overlay/components/overlay/ambassadors/ambassadors.module.scss
+++ b/src/pages/overlay/components/overlay/ambassadors/ambassadors.module.scss
@@ -99,7 +99,8 @@ $fade-distance: 3rem;
z-index: 2;
transition: $transition opacity;
- &:hover {
+ &:hover,
+ &:focus {
svg {
scale: 1.2;
@@ -141,14 +142,8 @@ $fade-distance: 3rem;
}
.ambassadorButton {
- outline-color: $outline-color;
- transition: $transition;
- transition-property: outline, filter;
-
- &:hover,
&.highlighted {
outline: $outline;
- filter: brightness(1.2);
}
}
diff --git a/src/pages/overlay/components/overlay/welcome/welcome.module.scss b/src/pages/overlay/components/overlay/welcome/welcome.module.scss
index 37072c4..f40f47d 100644
--- a/src/pages/overlay/components/overlay/welcome/welcome.module.scss
+++ b/src/pages/overlay/components/overlay/welcome/welcome.module.scss
@@ -15,7 +15,8 @@
list-style: none;
transition: $transition scale;
- &:hover {
+ &:hover,
+ &:focus {
scale: 1.2;
a {
@@ -44,7 +45,8 @@
transition: $transition;
transition-property: color;
- &:hover {
+ &:hover,
+ &:focus {
color: $outline-color;
}
}
diff --git a/src/pages/overlay/components/toggle/toggle.module.scss b/src/pages/overlay/components/toggle/toggle.module.scss
index 5ac7088..698139e 100644
--- a/src/pages/overlay/components/toggle/toggle.module.scss
+++ b/src/pages/overlay/components/toggle/toggle.module.scss
@@ -6,7 +6,8 @@
gap: 0.5rem;
cursor: pointer;
- &:hover {
+ &:hover,
+ &:focus-within {
.toggle {
input {
outline: $outline;