Skip to content

Commit a85dbfb

Browse files
MC-3681: Make Button Text Centered By Default
- make move handle always display on the left of button
1 parent 45acaa2 commit a85dbfb

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web/css/source/content-type/button-item

1 file changed

+2
-1
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/content-type/button-item/_default.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
}
2929
a[data-element='link'] {
3030
max-width: 100%;
31+
position: relative;
3132
transition: min-width .5s ease;
3233
word-wrap: break-word;
3334
[data-element='link_text'] {
@@ -41,6 +42,7 @@
4142
cursor: grab;
4243
cursor: -moz-grab;
4344
cursor: -webkit-grab;
45+
left: 0;
4446
position: absolute;
4547

4648
&:active {
@@ -54,7 +56,6 @@
5456
content: @icon-gripper__content;
5557
display: inline-block;
5658
font-size: @pagebuilder-button__font-size;
57-
left: -(@pagebuilder-button__font-size);
5859
line-height: @pagebuilder-button__line-height;
5960
position: absolute;
6061
}

0 commit comments

Comments
 (0)