Legacy Knowledge Base
Published Jul. 2, 2025

How to change the value of padding of basic components in DXP 7.3

Written By

Ethan Wei

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue     

  • The default value of padding of basic components is 3px in DXP 7.2, but it changed from 3px to 0px after upgrading to DXP 7.3.

Environment

  • Liferay DXP 7.3

Resolution

  • In DXP 7.3, the way styles are applied to fragments is upgraded, and the default values for padding default to zero. This is intended behavior.
  • If the migration path was followed, the already existing fragments in use should have kept the padding value they had in 7.2, and the new value should apply to new dropped fragments. If the existing fragments does not have the defined padding after upgrade, check if the fix for LPS-151001 (included in DXP 7.3 Update 5 and later version) is included in the environment  
  • On 7.3, to update the padding, the following methods can be used:
    • User can create a new style book and provide a non-zero value to this "spacing 0" token, for example, 3px, all fragments will get this 3px spacing as the value to apply. Bear in mind that this affects not only the new fragments dropped, but ALL the fragments being used that have that spacing 0 token selected as the value for any style. 
    • For specific fragments only, is to use compositions. Compositions save not only the fragments but also the style values in use. Therefore, for a button fragment, change the default padding from 0 to another value, and save it as a composition, the user can use that composition and the assigned value will appear as default instead of zero. 

 

Did this article resolve your issue ?

Legacy Knowledge Base