Skip to content

Commit

Permalink
add hover + checked state to environment cards (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
bellangerq authored Jan 24, 2024
1 parent 3846ac1 commit 5554213
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ function onInput() {
</script>

<template>
<div class="fr-p-3w container">
<div
class="fr-p-3w container"
:class="{ 'container-checked': modelValue.includes(value) }"
>
<!-- Allow click on the whole radio square -->
<div class="container-layer" @click="onInput" />
<p
Expand Down Expand Up @@ -89,6 +92,14 @@ function onInput() {
position: relative;
}
.container:hover {
background-color: var(--background-default-grey-hover);
}
.container-checked {
border-color: var(--border-plain-blue-france);
}
.container-layer {
position: absolute;
inset: 0;
Expand Down

0 comments on commit 5554213

Please sign in to comment.