Skip to content

Commit 00fc11a

Browse files
committed
Fixes bg attachment fixed
1 parent 3251a01 commit 00fc11a

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

assets/bundle/main.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ import{a as i,b as N,c as n,d as S,e as U,f as a,g as z,h as D,i as _}from"./chu
6868
}
6969
}
7070
71+
@media (max-width: 623px) and (hover: none) {
72+
:host::before {
73+
background-attachment: initial;
74+
}
75+
}
76+
7177
@media (min-width: 480px) {
7278
:host {
7379
--kd-phone-hero-block-offset: 30vh;
@@ -89,6 +95,12 @@ import{a as i,b as N,c as n,d as S,e as U,f as a,g as z,h as D,i as _}from"./chu
8995
}
9096
}
9197
98+
@media (min-width: 624px) and (hover: none) {
99+
:host {
100+
background-attachment: initial;
101+
}
102+
}
103+
92104
@media (min-width: 768px) {
93105
:host {
94106
--kd-phone-hero-content-width: 50;

src/components/phone-hero/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ export class KdPhoneHero extends KdBaseElement {
4141
}
4242
}
4343
44+
@media (max-width: 623px) and (hover: none) {
45+
:host::before {
46+
background-attachment: initial;
47+
}
48+
}
49+
4450
@media (min-width: 480px) {
4551
:host {
4652
--kd-phone-hero-block-offset: 30vh;
@@ -62,6 +68,12 @@ export class KdPhoneHero extends KdBaseElement {
6268
}
6369
}
6470
71+
@media (min-width: 624px) and (hover: none) {
72+
:host {
73+
background-attachment: initial;
74+
}
75+
}
76+
6577
@media (min-width: 768px) {
6678
:host {
6779
--kd-phone-hero-content-width: 50;

0 commit comments

Comments
 (0)