Button alignment on material inputnumber
parent
503fba3197
commit
f200bed532
|
@ -3,7 +3,7 @@ export default {
|
||||||
transitionDuration: '{transition.duration}'
|
transitionDuration: '{transition.duration}'
|
||||||
},
|
},
|
||||||
button: {
|
button: {
|
||||||
width: '2.5rem',
|
width: '3rem',
|
||||||
borderRadius: '{form.field.border.radius}',
|
borderRadius: '{form.field.border.radius}',
|
||||||
verticalPadding: '{form.field.padding.y}'
|
verticalPadding: '{form.field.padding.y}'
|
||||||
},
|
},
|
||||||
|
@ -34,5 +34,12 @@ export default {
|
||||||
activeColor: '{surface.200}'
|
activeColor: '{surface.200}'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
style: ({ dt }) => `
|
||||||
|
.p-inputnumber-stacked .p-inputnumber-button-group {
|
||||||
|
top: 2px;
|
||||||
|
right: 2px;
|
||||||
|
height: calc(100% - 4px);
|
||||||
|
}
|
||||||
|
`
|
||||||
};
|
};
|
||||||
|
|
|
@ -78,5 +78,5 @@ export default {
|
||||||
.p-inputtext.p-variant-filled.p-invalid:enabled:focus {
|
.p-inputtext.p-variant-filled.p-invalid:enabled:focus {
|
||||||
background-image: linear-gradient(to bottom, ${dt('inputtext.invalid.border.color')}, ${dt('inputtext.invalid.border.color')}), linear-gradient(to bottom, ${dt('inputtext.invalid.border.color')}, ${dt('inputtext.invalid.border.color')});
|
background-image: linear-gradient(to bottom, ${dt('inputtext.invalid.border.color')}, ${dt('inputtext.invalid.border.color')}), linear-gradient(to bottom, ${dt('inputtext.invalid.border.color')}, ${dt('inputtext.invalid.border.color')});
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue