Skip to content

Commit

Permalink
add small detail to group button
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriksen-mark committed May 11, 2024
1 parent 07c5d5a commit 04eed2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/Group/ButtonRow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const ButtonRow = ({
>
{lightsCapabilities.includes("xy") && (
<motion.div
className={"btn"}
className={`btn ${showContainer === "colorPicker" ? "active" : ""}`}
whileHover={{ scale: 1.2 }}
whileTap={{ scale: 0.9 }}
>
Expand All @@ -45,7 +45,7 @@ const ButtonRow = ({

{lightsCapabilities.includes("ct") && (
<motion.div
className={"btn"}
className={`btn ${showContainer === "colorTempPicker" ? "active" : ""}`}
whileHover={{ scale: 1.2 }}
whileTap={{ scale: 0.9 }}
>
Expand All @@ -64,7 +64,7 @@ const ButtonRow = ({
</motion.div>

<motion.div
className={"btn"}
className={`btn ${showContainer === "lights" ? "active" : ""}`}
whileHover={{ scale: 1.2 }}
whileTap={{ scale: 0.9 }}
>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Group/group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,19 @@

.btn {
text-align: center;
color: rgba(255, 255, 255, 0.6);
color: rgb(170, 170, 170);
margin-right: 10px;
margin-left: 10px;
font-size: 20px;
padding: 5px;
transition: color 0.1s ease;

&.active {
color: rgba(4, 154, 255, 0.8);
color: rgb(255, 255, 255);
}

&:hover {
color: rgba(255, 255, 255, 0.9);
color: rgb(255, 255, 255);
cursor: pointer;
transition: color 0.2s ease;
}
Expand Down

0 comments on commit 04eed2d

Please sign in to comment.