From 0975f411103f39756bf5e0680ee59f539e0c9cd8 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 14 Jan 2025 15:50:15 +0300 Subject: [PATCH 1/2] Fixed #7017 - Size support for Icon Only Buttons --- apps/showcase/doc/button/IconOnlyDoc.vue | 281 ++++++++++-------- .../primevue/src/button/style/ButtonStyle.js | 16 + .../themes/src/presets/aura/button/index.js | 6 +- .../themes/src/presets/lara/button/index.js | 6 +- .../src/presets/material/button/index.js | 6 +- .../themes/src/presets/nora/button/index.js | 6 +- packages/themes/types/button/index.d.ts | 12 + 7 files changed, 202 insertions(+), 131 deletions(-) diff --git a/apps/showcase/doc/button/IconOnlyDoc.vue b/apps/showcase/doc/button/IconOnlyDoc.vue index 18fe197d0..3c3844e77 100644 --- a/apps/showcase/doc/button/IconOnlyDoc.vue +++ b/apps/showcase/doc/button/IconOnlyDoc.vue @@ -3,59 +3,62 @@

Buttons can have icons without labels.

-
-
-
-
+ +
+
-
@@ -65,6 +68,12 @@ export default { data() { return { + size: 'normal', + sizeOptions: [ + { label: 'Small', value: 'small' }, + { label: 'Normal', value: 'normal' }, + { label: 'Large', value: 'large' } + ], code: { basic: `