diff --git a/src/components/inputnumber/InputNumber.vue b/src/components/inputnumber/InputNumber.vue index 9c9167e78..e66504bd0 100644 --- a/src/components/inputnumber/InputNumber.vue +++ b/src/components/inputnumber/InputNumber.vue @@ -619,16 +619,20 @@ export default { display: inline-flex; } -.p-inputnumber-button-up, -.p-inputnumber-button-down { +.p-inputnumber-button { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; } -.p-inputnumber-input { - flex: 1 1 auto; +.p-inputnumber-buttons-stacked .p-inputnumber-button .p-button-text, +.p-inputnumber-buttons-horizontal .p-inputnumber-button .p-button-text { + display: none; +} + +.p-inputnumber .p-inputnumber-button span { + font-size: inherit; } .p-inputnumber-buttons-stacked .p-inputnumber-button-up { @@ -700,6 +704,10 @@ export default { width: auto; } +.p-inputnumber-input { + flex: 1 1 auto; +} + .p-fluid .p-inputnumber { width: 100%; } diff --git a/src/views/inputnumber/InputNumberDemo.vue b/src/views/inputnumber/InputNumberDemo.vue index 5f8705e8b..52621a397 100644 --- a/src/views/inputnumber/InputNumberDemo.vue +++ b/src/views/inputnumber/InputNumberDemo.vue @@ -144,8 +144,4 @@ export default { 'InputNumberDoc': InputNumberDoc } } - - - + \ No newline at end of file