Skip to content

Commit 8478669

Browse files
committed
MC-3934: Slide/Banner Overlay & Button Do Not Show On Storefront When Set To On Hover
Use cursor for simulated anchor when data-href not equal to javascript:void(0)
1 parent b6e28d6 commit 8478669

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

app/code/Magento/PageBuilder/view/frontend/web/css/source/content-type/banner/_default.less

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,22 @@
77
// Default appearance styles
88
// _____________________________________________
99

10-
[data-role='banner'] {
11-
> [data-link-type] {
10+
[data-role='banner'] > [data-element='link'] {
11+
color: inherit;
12+
text-decoration: inherit;
13+
14+
&:hover {
1215
color: inherit;
1316
text-decoration: inherit;
14-
15-
&:hover {
16-
color: inherit;
17-
text-decoration: inherit;
18-
}
1917
}
2018

21-
[data-element='link'][href='javascript:void(0)'] {
19+
&[data-href='javascript:void(0)'] {
2220
cursor: auto;
2321
}
22+
23+
&:not([data-href='javascript:void(0)']) {
24+
cursor: pointer;
25+
}
2426
}
2527

2628
.pagebuilder-banner-wrapper {

app/code/Magento/PageBuilder/view/frontend/web/css/source/content-type/slide/_default.less

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,22 @@
1111
box-sizing: border-box;
1212
overflow: hidden;
1313

14-
[data-element='link'][href='javascript:void(0)'] {
15-
cursor: auto;
16-
}
17-
18-
> a {
14+
> [data-element='link'] {
1915
color: inherit;
2016
text-decoration: inherit;
2117

2218
&:hover {
2319
color: inherit;
2420
text-decoration: inherit;
2521
}
22+
23+
&[data-href='javascript:void(0)'] {
24+
cursor: auto;
25+
}
26+
27+
&:not([data-href='javascript:void(0)']) {
28+
cursor: pointer;
29+
}
2630
}
2731
}
2832

0 commit comments

Comments
 (0)