diff --git a/components/lib/button/Button.vue b/components/lib/button/Button.vue index 53d9682ba..52a620fbf 100755 --- a/components/lib/button/Button.vue +++ b/components/lib/button/Button.vue @@ -8,7 +8,7 @@ - {{ label }} + {{ label || ' ' }} diff --git a/components/lib/button/style/ButtonStyle.js b/components/lib/button/style/ButtonStyle.js index 74d5311d0..f4caf9b07 100644 --- a/components/lib/button/style/ButtonStyle.js +++ b/components/lib/button/style/ButtonStyle.js @@ -36,10 +36,10 @@ const theme = ({ dt }) => ` } .p-button-icon-only { - justify-content: center; width: ${dt('button.icon.only.width')}; padding-left: 0; padding-right: 0; + gap: 0; } .p-button-icon-only.p-button-rounded { @@ -47,6 +47,11 @@ const theme = ({ dt }) => ` height: ${dt('button.icon.only.width')}; } +.p-button-icon-only .p-button-label { + visibility: hidden; + width: 0; +} + .p-button-sm { font-size: ${dt('button.sm.font.size')}; padding: ${dt('button.sm.padding.y')} ${dt('button.sm.padding.x')};