Skip to content

Commit 7a1453b

Browse files
committed
MC-3397: Content Vertical Alignment inside a Container for Tab Item
- add justify content property to tab item xml - add container element with vertical alignment styles to tab item xml
1 parent dfc1722 commit 7a1453b

File tree

1 file changed

+9
-1
lines changed
  • app/code/Magento/PageBuilder/view/base/pagebuilder/content_type

1 file changed

+9
-1
lines changed

app/code/Magento/PageBuilder/view/base/pagebuilder/content_type/tab_item.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
<elements>
3535
<element name="main">
3636
<style_properties>
37-
<property name="min_height" source="min_height" converter="Magento_PageBuilder/js/converter/style/remove-px"/>
3837
<property name="background_color" source="background_color" converter="Magento_PageBuilder/js/converter/style/color"/>
3938
<property name="background_image" source="background_image" converter="Magento_PageBuilder/js/converter/style/background-image" preview_converter="Magento_PageBuilder/js/converter/style/preview/background-image"/>
4039
<property name="background_position" source="background_position"/>
@@ -46,6 +45,8 @@
4645
<property name="border_color" source="border_color" converter="Magento_PageBuilder/js/converter/style/color"/>
4746
<property name="border_width" source="border_width" converter="Magento_PageBuilder/js/converter/style/remove-px"/>
4847
<property name="border_radius" source="border_radius" converter="Magento_PageBuilder/js/converter/style/remove-px"/>
48+
<property name="justify_content" source="justify_content" persist="false"/>
49+
<property name="min_height" source="min_height" converter="Magento_PageBuilder/js/converter/style/remove-px"/>
4950
<complex_property name="margins" storage_key="margins_and_padding" reader="Magento_PageBuilder/js/property/margins" converter="Magento_PageBuilder/js/converter/style/margins"/>
5051
<complex_property name="padding" storage_key="margins_and_padding" reader="Magento_PageBuilder/js/property/paddings" converter="Magento_PageBuilder/js/converter/style/paddings"/>
5152
</style_properties>
@@ -56,6 +57,13 @@
5657
</attributes>
5758
<css name="css_classes"/>
5859
</element>
60+
<element name="container">
61+
<style_properties>
62+
<property name="justify_content" source="justify_content"/>
63+
<static_property source="display" value="flex"/>
64+
<static_property source="flex_direction" value="column"/>
65+
</style_properties>
66+
</element>
5967
</elements>
6068
</data_mapping>
6169
</appearance>

0 commit comments

Comments
 (0)