diff --git a/src/app/ItemPage.js b/src/app/ItemPage.js
index f8998e2..273a8ba 100644
--- a/src/app/ItemPage.js
+++ b/src/app/ItemPage.js
@@ -686,21 +686,19 @@ function ItemPageOutfitPreview({ itemId }) {
-
-
- setPetState({
- speciesId,
- colorId,
- pose: idealPose,
- appearanceId: null,
- })
- }
- isLoading={loading}
- />
-
+
+ setPetState({
+ speciesId,
+ colorId,
+ pose: idealPose,
+ appearanceId: null,
+ })
+ }
+ isLoading={loading}
+ />
);
}
@@ -757,10 +755,20 @@ function PlayPauseButton({ isPaused, onClick }) {
function SpeciesFacesPicker({ selectedSpeciesId, onChange, isLoading }) {
const selectedBorderColor = useColorModeValue("green.600", "green.400");
const selectedBackgroundColor = useColorModeValue("green.200", "green.600");
+ const focusBorderColor = "blue.400";
+ const focusBackgroundColor = "blue.100";
const [
selectedBorderColorValue,
selectedBackgroundColorValue,
- ] = useToken("colors", [selectedBorderColor, selectedBackgroundColor]);
+ focusBorderColorValue,
+ focusBackgroundColorValue,
+ ] = useToken("colors", [
+ selectedBorderColor,
+ selectedBackgroundColor,
+ focusBorderColor,
+ focusBackgroundColor,
+ ]);
+ const lgShadow = useToken("shadows", "xl");
const allSpeciesFaces = speciesFaces.sort((a, b) =>
a.speciesName.localeCompare(b.speciesName)
@@ -769,71 +777,89 @@ function SpeciesFacesPicker({ selectedSpeciesId, onChange, isLoading }) {
return (
{({ css }) => (
-
- {allSpeciesFaces.map(
- ({ speciesId, speciesName, colorId, neopetsImageHash }) => (
-
- onChange({ speciesId, colorId })}
- />
-
+ {allSpeciesFaces.map(
+ ({ speciesId, speciesName, colorId, neopetsImageHash }) => (
+
+ onChange({ speciesId, colorId })}
+ />
& {
- opacity: 1;
- filter: saturate(110%);
+ input:checked + & {
+ background: ${selectedBackgroundColorValue};
+ border-radius: 6px;
+ box-shadow: ${lgShadow},
+ ${selectedBorderColorValue} 0 0 2px 2px;
+ transform: scale(1.2);
+ z-index: 1;
+ }
+
+ input:focus + & {
+ background: ${focusBackgroundColorValue};
+ box-shadow: ${lgShadow},
+ ${focusBorderColorValue} 0 0 0 3px;
}
`}
- />
-
-
- )
- )}
-
+ >
+
+
+
+ )
+ )}
+
+
)}
);