Skip to content

Commit

Permalink
style: icon component set as flex
Browse files Browse the repository at this point in the history
  • Loading branch information
gokh4nozturk authored and Gökhan Öztürk committed Sep 20, 2022
1 parent dc4cc0e commit c54a36a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/components/Checkbox/Checkbox.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ export const defaultArgs = {
},
defaultValue: 'checkbox',
},
checked: {
control: {
type: 'boolean',
},
defaultValue: false,
},
label: {
control: {
type: 'text',
Expand Down
5 changes: 4 additions & 1 deletion src/components/Icon/Icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const props = withDefaults(defineProps<Props>(), {
name: 'face',
kind: 'outlined',
size: 24,
color: 'currentColor',
color: '',
fontWeight: () => 'regular',
});
Expand All @@ -22,6 +22,9 @@ const styles = computed(() => {
fontSize: `${props.size}px`,
fontWeight: `${props.fontWeight}`,
color: props.color,
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'center',
};
});
Expand Down

0 comments on commit c54a36a

Please # to comment.