Skip to content

Commit 2df472e

Browse files
lamATnginxmaximusmith529
authored andcommitted
Lock scroll when coveo filter modal is open (#392)
* Coveo: Lock scroll when filter modal is open * Coveo: Refactored CSS to nest parts of atomic search box
1 parent c4d8717 commit 2df472e

File tree

1 file changed

+36
-30
lines changed

1 file changed

+36
-30
lines changed

assets/css/v2/style.css

Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,42 +1390,42 @@ atomic-search-box {
13901390
width: 18.5rem;
13911391
display: flex;
13921392
align-items: center;
1393-
}
13941393

1395-
atomic-search-box::part(input) {
1396-
height: 2.25rem;
1397-
font-size: var(--font-step--1);
1398-
padding: 0.5rem 1rem;
1399-
box-sizing: border-box;
1400-
}
1394+
&::part(input) {
1395+
height: 2.25rem;
1396+
font-size: var(--font-step--1);
1397+
padding: 0.5rem 1rem;
1398+
box-sizing: border-box;
1399+
}
14011400

1402-
atomic-search-box::part(textarea-expander) {
1403-
white-space: nowrap;
1404-
overflow-x: auto;
1405-
overflow-y: hidden;
1406-
resize: none;
1407-
}
1401+
&::part(textarea-expander) {
1402+
white-space: nowrap;
1403+
overflow-x: auto;
1404+
overflow-y: hidden;
1405+
resize: none;
1406+
}
14081407

1409-
atomic-search-box::part(textarea) {
1410-
padding-left: 0;
1411-
padding-right: 0;
1412-
font-weight: 400;
1413-
}
1408+
&::part(textarea) {
1409+
padding-left: 0;
1410+
padding-right: 0;
1411+
font-weight: 400;
1412+
}
14141413

1415-
atomic-search-box::part(wrapper) {
1416-
height: 100%;
1417-
display: flex;
1418-
flex-direction: row-reverse;
1419-
align-items: center;
1420-
}
1414+
&::part(wrapper) {
1415+
height: 100%;
1416+
display: flex;
1417+
flex-direction: row-reverse;
1418+
align-items: center;
1419+
}
14211420

1422-
atomic-search-box::part(submit-button) {
1423-
order: -1;
1424-
padding-right: 0;
1425-
}
1421+
&::part(submit-button) {
1422+
order: -1;
1423+
padding-right: 0;
1424+
}
14261425

1427-
atomic-search-box::part(submit-button-wrapper) {
1428-
margin: 0;
1426+
&::part(submit-button-wrapper) {
1427+
margin: 0;
1428+
}
14291429
}
14301430

14311431
atomic-search-interface#search-standalone-header {
@@ -1456,6 +1456,12 @@ body:not(:has(.main-layout)) header atomic-search-interface {
14561456
display: block;
14571457
}
14581458

1459+
body:has(atomic-refine-modal[is-open=""]) {
1460+
/* Lock scrolling when modal is up */
1461+
position: fixed;
1462+
width: 100%;
1463+
}
1464+
14591465
@media (max-width: 88rem) {
14601466
/* Show on pages with sidebar if it is hidden */
14611467
body:has(.sidebar-layout) header atomic-search-interface {

0 commit comments

Comments
 (0)