Skip to content

Commit c32da94

Browse files
committed
#637: Form field/field group viewport scope - added icon and tooltip on hover and applied styling
1 parent 2ee70da commit c32da94

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed

app/code/Magento/PageBuilder/view/adminhtml/ui_component/pagebuilder_tabs_mobile_form.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@
4141
</item>
4242
</item>
4343
</argument>
44+
<settings>
45+
<additionalClasses>
46+
<class name="admin__field-min-height-mobile">true</class>
47+
</additionalClasses>
48+
<tooltip>
49+
<description translate="true">
50+
<![CDATA[
51+
<p>Style changes will only affect this breakpoint</p>
52+
]]>
53+
</description>
54+
</tooltip>
55+
</settings>
4456
</field>
4557
</fieldset>
4658
</form>

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/content-type/tabs/_import.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
// _____________________________________________
99

1010
@import './_default.less';
11+
@import './_mobile.less';
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
// /**
2+
// * Copyright © Magento, Inc. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
//
7+
// Default appearance styles rendered through Mobile viewport
8+
// _____________________________________________________
9+
.admin__fieldset .admin__field.admin__field-min-height-mobile {
10+
.admin__field-control._with-tooltip {
11+
display: flex;
12+
width: 18.6rem;
13+
14+
.admin__control-addon {
15+
max-width: inherit;
16+
}
17+
18+
.admin__field-tooltip {
19+
margin-left: 15px;
20+
}
21+
22+
.admin__field-tooltip-action {
23+
&:before {
24+
//content: url();
25+
}
26+
}
27+
28+
.admin__field-tooltip-content {
29+
background: rgba(49, 48, 43, .8);
30+
border: none;
31+
bottom: auto;
32+
box-shadow: unset;
33+
left: -1.5rem;
34+
padding: 6px 15px 2px;
35+
top: 3.5rem;
36+
right: auto;
37+
width: 16rem;
38+
39+
p {
40+
color: #ffffff;
41+
font-size: 1.2rem;
42+
}
43+
44+
&:before {
45+
border-bottom: 4px solid rgba(49, 48, 43, .8);
46+
border-left: 5px solid transparent;
47+
border-right: 5px solid transparent;
48+
border-top: unset;
49+
content: '';
50+
height: 0;
51+
left: 23px;
52+
opacity: 0.9;
53+
position: absolute;
54+
top: -4px;
55+
width: 0;
56+
}
57+
58+
&:after {
59+
display: none;
60+
}
61+
}
62+
}
63+
}

0 commit comments

Comments
 (0)