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

Enhancement: Update calendar and chevron icon sizes #1522

Merged
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
4 changes: 2 additions & 2 deletions src/components/DateRangeSelect/PDateRangeSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<PButton class="p-date-range-select__button" icon="ArrowSmallLeftIcon" :disabled="previousDisabled" :size="size" @click="previous" />
<PButton class="p-date-range-select__button p-date-range-select__input" :class="button({ size })" :disabled="disabled" :size="size" @click="open">
<div class="p-date-range-select__content">
<PIcon icon="CalendarIcon" class="shrink-0" />
<PIcon icon="CalendarIcon" class="shrink-0" :size />
<span class="p-date-range-select__label" :class="classes.label">
{{ label }}
</span>
<PIcon icon="ChevronDownIcon" class="ml-auto shrink-0" />
<PIcon icon="ChevronDownIcon" class="ml-auto shrink-0" :size />
</div>
</PButton>

Expand Down
2 changes: 1 addition & 1 deletion src/components/Icon/PIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const props = defineProps<{
icon: Icon,
solid?: boolean,
size?: 'small' | 'default' | 'large' | 'sm' | 'lg',
size?: 'small' | 'default' | 'large' | 'sm' | 'lg' | null,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just for compat with other sizes

}>()

const component = computed(() => {
Expand Down
Loading