Skip to content

Commit

Permalink
Change class name
Browse files Browse the repository at this point in the history
  • Loading branch information
zysim committed May 5, 2024
1 parent bf0e0fd commit e7fdb2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/elements/buttons/DropDown/DropDown.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('<DropDown />', () => {

await getByTestId(wrapper, 'toggler').trigger('click')

expect(getByTestId(wrapper, 'arrow').classes()).toContain('selected')
expect(getByTestId(wrapper, 'arrow').classes()).toContain('isOpen')
})
})
})
4 changes: 2 additions & 2 deletions components/elements/buttons/DropDown/DropDown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ defineProps<Props>()
alt="Dropdown arrow"
width="10"
data-testid="arrow"
:class="state.active.value && 'selected'"
:class="state.active.value && 'isOpen'"
/>
</div>
</BaseButton>
Expand All @@ -62,7 +62,7 @@ defineProps<Props>()
& .container__toggler {
@apply flex justify-center items-center gap-2;
& img.selected {
& img.isOpen {
@apply rotate-180;
}
}
Expand Down

0 comments on commit e7fdb2a

Please sign in to comment.