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

Prime icons: Adjust icon size in icon list in docs #6841

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
8 changes: 7 additions & 1 deletion apps/showcase/doc/icons/ListDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<InputText v-model="filter" class="w-full p-4 mt-4 mb-6" placeholder="Search an icon" />

<div class="card">
<div class="grid grid-cols-12 gap-4 text-center">
<div class="grid grid-cols-12 gap-4 text-center icons-size">
<div v-for="icon of filteredIcons" :key="icon.properties.name" class="col-span-12 md:col-span-2 mb-8">
<i :class="'text-2xl mb-4 text-surface-500 dark:text-surface-400 pi pi-' + icon.properties.name"></i>
<div>pi-{{ icon.properties.name }}</div>
Expand All @@ -15,6 +15,12 @@
</div>
</template>

<style scoped>
.icons-size {
--p-icon-size: 2rem;
}
</style>

<script>
import { IconService } from '@/service/IconService';

Expand Down