Skip to content

Commit

Permalink
pkp/pkp-lib#10447 Remove prop enlarged icon for ButtonIcon component
Browse files Browse the repository at this point in the history
  • Loading branch information
blesildaramirez committed Sep 23, 2024
1 parent 482ef1e commit 2c5295c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
23 changes: 0 additions & 23 deletions src/components/ButtonIcon/ButtonIcon.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,6 @@ export const Default = {
},
};

export const EnlargedIcon = {
render: (args) => ({
components: {ButtonIcon},
setup() {
return {args};
},
template: `
enlarged icon: 
<div class="inline-flex gap-1">
<ButtonIcon icon="ChevronUp" :enlarged="true"/>
<ButtonIcon icon="ChevronDown" :enlarged="true" />
</div>
<br>
vs default size:
<div class="inline-flex gap-1">
<ButtonIcon icon="ChevronUp"/>
<ButtonIcon icon="ChevronDown" />
</div>
`,
}),
args: {},
};

export const Disabled = {
args: {
icon: 'Cancel',
Expand Down
11 changes: 1 addition & 10 deletions src/components/ButtonIcon/ButtonIcon.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<template>
<button :class="styles" :aria-label="ariaLabel" :disabled="isDisabled">
<Icon
:class="enlarged ? 'h-9 w-9' : 'h-5 w-5'"
:icon="icon"
aria-hidden="true"
/>
<Icon class="h-5 w-5" :icon="icon" aria-hidden="true" />
</button>
</template>

Expand Down Expand Up @@ -33,11 +29,6 @@ const props = defineProps({
type: Boolean,
default: false,
},
/** Displays the icon larger. */
enlarged: {
type: Boolean,
default: false,
},
});
const styles = computed(() => ({
Expand Down

0 comments on commit 2c5295c

Please sign in to comment.