@@ -11,6 +11,7 @@ import {
11
11
css ,
12
12
Drawer ,
13
13
Stack ,
14
+ Grid2 as Grid ,
14
15
} from "ol-components"
15
16
import {
16
17
Button ,
@@ -35,7 +36,6 @@ import {
35
36
} from "api"
36
37
import { useLearningResourcesSearch } from "api/hooks/learningResources"
37
38
import { useAdminSearchParams } from "api/hooks/adminSearchParams"
38
- import { GridColumn , GridContainer } from "@/components/GridLayout/GridLayout"
39
39
import {
40
40
AvailableFacets ,
41
41
UseResourceSearchParamsProps ,
@@ -367,30 +367,6 @@ const StyledResultsContainer = styled.div<{ fetching: boolean }>(
367
367
} ) ,
368
368
)
369
369
370
- const DesktopFiltersColumn = styled ( GridColumn ) `
371
- ${ ( { theme } ) => theme . breakpoints . down ( "md" ) } {
372
- display: none;
373
- }
374
-
375
- padding-left: 0 !important;
376
- padding-right: 18px !important;
377
- padding-bottom: 25px;
378
- `
379
-
380
- const StyledMainColumn = styled ( GridColumn ) `
381
- ${ ( { theme } ) => theme . breakpoints . up ( "md" ) } {
382
- padding-left: 6px !important;
383
- padding-right: 0 !important;
384
- display: flex;
385
- flex-direction: column;
386
- gap: 16px;
387
- }
388
-
389
- ${ ( { theme } ) => theme . breakpoints . down ( "md" ) } {
390
- padding-left: 0 !important;
391
- }
392
- `
393
-
394
370
const MobileFilter = styled . div `
395
371
${ ( { theme } ) => theme . breakpoints . up ( "md" ) } {
396
372
display: none;
@@ -451,19 +427,6 @@ const MobileFacetsTitleContainer = styled.div`
451
427
}
452
428
`
453
429
454
- const ReversedGridContainer = styled ( GridContainer ) `
455
- max-width: 1272px !important;
456
- margin-left: 0 !important;
457
- width: 100% !important;
458
-
459
- /**
460
- We want the facets to be visually on left, but occur second in the DOM / tab
461
- order. This makes it easier for keyboard navigators to get directly to the
462
- search results.
463
- */
464
- flex-direction: row-reverse;
465
- `
466
-
467
430
const ExplanationContainer = styled . div `
468
431
${ ( { theme } ) => css ( { ...theme . typography . body3 } ) }
469
432
color: ${ ( { theme } ) => theme . custom . colors . silverGrayDark } ;
@@ -859,9 +822,17 @@ const SearchDisplay: React.FC<SearchDisplayProps> = ({
859
822
860
823
return (
861
824
< Container >
862
- < ReversedGridContainer >
825
+ < Grid container columnSpacing = "24px" flexDirection = "row-reverse" >
863
826
< ResourceCategoryTabs . Context activeTabName = { activeTab . name } >
864
- < StyledMainColumn component = "section" variant = "main-2" >
827
+ < Grid
828
+ component = "section"
829
+ size = { { xs : 12 , md : 9 } }
830
+ sx = { {
831
+ display : "flex" ,
832
+ flexDirection : "column" ,
833
+ gap : "16px" ,
834
+ } }
835
+ >
865
836
< VisuallyHidden as = { resultsHeadingEl } >
866
837
Search Results
867
838
</ VisuallyHidden >
@@ -984,10 +955,15 @@ const SearchDisplay: React.FC<SearchDisplayProps> = ({
984
955
/>
985
956
</ PaginationContainer >
986
957
</ ResourceCategoryTabs . TabPanels >
987
- </ StyledMainColumn >
988
- < DesktopFiltersColumn
958
+ </ Grid >
959
+ < Grid
989
960
component = "section"
990
- variant = "sidebar-2"
961
+ size = { { xs : 12 , md : 3 } }
962
+ sx = { ( theme ) => ( {
963
+ [ theme . breakpoints . down ( "md" ) ] : {
964
+ display : "none" ,
965
+ } ,
966
+ } ) }
991
967
data-testid = "facets-container"
992
968
>
993
969
< FacetsTitleContainer >
@@ -1009,9 +985,9 @@ const SearchDisplay: React.FC<SearchDisplayProps> = ({
1009
985
) : null }
1010
986
</ FacetsTitleContainer >
1011
987
{ filterContents }
1012
- </ DesktopFiltersColumn >
988
+ </ Grid >
1013
989
</ ResourceCategoryTabs . Context >
1014
- </ ReversedGridContainer >
990
+ </ Grid >
1015
991
</ Container >
1016
992
)
1017
993
}
0 commit comments