min-width on modal buttons not working as expected
Minimum width on button is not working when the button is visible on a modal dialog being called via a local action, the modal buttons are out of proportion.
Steps to Reproduce
- Add min-width:XXXpx to standard button format in skin.
- Configure asection to be open in modaldialo with default modal dialog ok/cancel button.
- Run case an dluanch modal dialog.
- Observe modal dialog button width is more as compared to other buttons present in harness.
A software use or operation error
User has added 106px min-width to button style in skin rule.
Button in modal dialog is a non-auto generated button and code generation is different compared to autogenerated button.
Non-auto generated button displays button in table with three cells(left, middle and right) , so when adding min-width to button format, it is applied to three cells at a time and result is button width is more
Where as in autogenerated control, it has only a button in a span, so style is appended only to that button.
Non-Auto generated button(pzModalButton)
Perform the following local-change:
1.Need to modify corresponding css as mentioned in below SA atricle
2.Do not modify OOTB styles(mostly for width/height/margin/padding) and create new button format , use the new format application wide . With this final rule, non-auto buttons will not be affected.