Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: edits for new icon library #75

Merged
merged 1 commit into from
Sep 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/components/Chips/Chip.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,9 @@ export const defaultArgs = {
},
icon: {
control: {
type: 'select',
options: icons,
type: 'text',
},
defaultValue: icons[0],
defaultValue: '',
},
square: {
control: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Chips/chip.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
}

.chip__icon {
@apply ml-1 hover:opacity-80 transition-opacity duration-200;
@apply ml-1 hover:opacity-80 transition-opacity duration-200 cursor-pointer;
}

.chip--reverse > .chip__icon {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dropdown/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const onSelect = (value: string) => {
};
const iconName = computed(() => {
if (props.icon) return props.icon;
return state.visible ? 'ChevronUpIcon' : 'ChevronDownIcon';
return state.visible ? 'expand_less' : 'expand_more';
});
</script>
<template>
Expand Down