Skip to content

Commit

Permalink
Add hover effect to Materia box (#14)
Browse files Browse the repository at this point in the history
* Add hover effect to Materia box

* Update src/components/Materias.js

Co-authored-by: Federico del Mazo <delmazofederico@gmail.com>

* Update src/components/Materias.js

Co-authored-by: Federico del Mazo <delmazofederico@gmail.com>

---------

Co-authored-by: Federico del Mazo <delmazofederico@gmail.com>
  • Loading branch information
lopezac and FdelMazo committed Jan 29, 2024
1 parent e683576 commit 46c423f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Materias.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ const Materias = ({ materias, materiaSelected, setCodigoSelected, partialLoading
borderRadius={6}
p={8}
bg="white"
cursor="pointer"
_hover={{
bg: "whiteAlpha.700",
}}
transitionDuration="100ms"
boxShadow={
materiaSelected?.nombre === m.nombre
? "0 0 0 2px violet"
Expand Down

0 comments on commit 46c423f

Please sign in to comment.