Skip to content

Commit

Permalink
feat: update IconDraggable to use darker green color
Browse files Browse the repository at this point in the history
  • Loading branch information
motea927 committed Oct 15, 2024
1 parent b0de5c6 commit b8bd015
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions popup/src/components/icons/IconDraggable.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('IconDraggable.vue', () => {

const icon = wrapper.findComponent(Icon)

expect(icon.classes()).toContain('text-green-600')
expect(icon.classes()).toContain('text-green-900')
expect(icon.classes()).not.toContain('opacity-20')
})

Expand All @@ -34,7 +34,7 @@ describe('IconDraggable.vue', () => {
})
const icon = wrapper.findComponent(Icon)
expect(icon.classes()).toContain('opacity-20')
expect(icon.classes()).not.toContain('text-green-600')
expect(icon.classes()).not.toContain('text-green-900')
})

it('emits the clickDrag event when clicked', async () => {
Expand Down
2 changes: 1 addition & 1 deletion popup/src/components/icons/IconDraggable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<IconContainer @click="emit('clickDrag')">
<Icon
:icon="`fluent:drag-20-regular`"
:class="[props.isDraggable ? 'text-green-600' : 'opacity-20']"
:class="[props.isDraggable ? 'text-green-900' : 'opacity-20']"
/>
</IconContainer>
</template>
Expand Down

0 comments on commit b8bd015

Please sign in to comment.