Skip to content

Commit

Permalink
code clean up 2p
Browse files Browse the repository at this point in the history
  • Loading branch information
anhduy1202 committed Oct 25, 2021
1 parent 0e3f7d1 commit 87c2fdd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/lib/components/utils/acm-select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
</script>

<div class="term" name="school-year">
<div class="option-box">
<div class="option-box" class:active>
<div class="selected" on:click={toggleDropdown}>{currentValue}</div>
<div class="option" class:active>
<div class="option">
{#each options as optionValue (optionValue)}
<div class="option-choice" on:click={() => handleOption(optionValue)}>
{optionValue}
Expand Down Expand Up @@ -47,11 +47,14 @@
background-color: var(--acm-dark);
padding: 8px 24px;
cursor: pointer;
border-radius: 6px 6px 0px 0px;
border-radius: 6px;
&:hover {
color: var(--acm-blue);
}
}
.active > .selected {
border-radius: 6px 6px 0 0;
}
.option {
cursor: pointer;
Expand All @@ -66,7 +69,7 @@
}
}
.option.active {
.active > .option {
visibility: visible;
background-color: var(--acm-dark);
padding: 8px 24px;
Expand Down

0 comments on commit 87c2fdd

Please sign in to comment.