Skip to content

Commit 7cc4507

Browse files
committed
Fix label being cutoff in Newsletter registration
In this commit the label to Register in the newsletter that exists in the homepage had the text completely cut off on Tablet iOS devices To solve this the width property was altered to use the max-content value, and a max-width property is also added. Also some paddings were set to 0 because Safari keeps adding some default padding values.
1 parent abbfa03 commit 7cc4507

File tree

1 file changed

+4
-2
lines changed
  • app/design/frontend/Magento/luma/Magento_Newsletter/web/css/source

1 file changed

+4
-2
lines changed

app/design/frontend/Magento/luma/Magento_Newsletter/web/css/source/_module.less

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
}
4747

4848
input {
49-
padding-left: 35px;
49+
padding: 0 0 0 35px; // Reset some default Safari padding values.
50+
margin-right: 35px;
5051
}
5152

5253
.title {
@@ -78,7 +79,8 @@
7879

7980
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
8081
.block.newsletter {
81-
width: 34%;
82+
.lib-css(width, max-content);
83+
max-width: 44%;
8284
}
8385
}
8486

0 commit comments

Comments
 (0)