Skip to content

Commit 4c4edcc

Browse files
Merge pull request #9650 from circleci/move-component-switcher
DOCSS-1939 Move component switcher
2 parents ebff233 + 3b5e4e0 commit 4c4edcc

File tree

6 files changed

+8
-3
lines changed

6 files changed

+8
-3
lines changed

ui/src/layouts/home.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<body class="article{{#with (or page.attributes.role page.role)}} {{{this}}}{{/with}} tracking-normal leading-[1.6] text-[16px]">
77
{{> header}}
88
{{> navigation class="w-full lg:hidden flex-initial"}}
9+
{{> mobile-component-dropdown}}
910
{{> landing}}
1011
</body>
1112
</html>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<div role="navigation" aria-label="Article Toolbar" class="flex flex-col max-w-[800px] md:items-center mx-4 md:ml-[3.5rem] lg:ml-12 mt-8 md:mt-12 md:flex-row text-sm font-light" >
1+
<div role="navigation" aria-label="Article Toolbar" class="flex flex-col max-w-[800px] md:items-center mx-4 md:ml-[3.5rem] lg:ml-12 mt-6 md:mt-12 md:flex-row text-sm font-light" >
22
{{> breadcrumbs}}
33
</div>

ui/src/partials/body.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<div class="flex h-full w-full">
22
{{> navigation class= "w-full lg:w-2/6 flex-initial lg:max-w-[420px] lg:min-w-[360px]"}}
33
<div class="flex flex-col w-full xl:items-center">
4+
{{> mobile-component-dropdown}}
45
{{> main}}
56
{{> footer class="px-12"}}
67
</div>

ui/src/partials/dropdown-menu.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<ul
22
data-dropdown-menu
3-
class="w-full absolute top-10 py-2 left-0 rounded-xl shadow-default bg-white max-h-60 overflow-y-scroll z-10 hidden"
3+
class="w-full absolute top-10 py-2 left-0 rounded-xl shadow-default bg-white max-h-60 overflow-y-scroll z-50 hidden"
44
role="listbox"
55
tabindex="-1"
66
>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!-- Component Dropdown for Mobile -->
2+
<div class="md:hidden flex justify-center px-4 mt-6 mb-4">
3+
{{> dropdown options=(components-to-nav-list) class="w-full max-w-[320px]" }}
4+
</div>

ui/src/partials/navigation.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
</div>
88
{{> search-bar class="md:hidden mb-12" }}
99
{{> search-results class="hidden"}}
10-
{{> dropdown options=(components-to-nav-list) class="w-full md:hidden m-auto mt-8 mb-10" }}
1110
{{> component-explorer-nav class="hidden" options=(components-to-nav-list)}}
1211
<div class="flex flex-col space-between">
1312
{{> left-side-nav}}

0 commit comments

Comments
 (0)