Skip to content

Commit

Permalink
style: complete styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Luqmaan Essop committed May 8, 2024
1 parent 7b58f2e commit 7b4a745
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/ui/src/components/Molecules/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function BreadCrumbs({ className }: { className?: string }) {
<li className="inline-flex items-center" key={id}>
{index > 0 ? (
<div aria-hidden="true">
<ChevronRightIcon className={'w-3 h-3 text-gray-400 mx-1'} />
<ChevronRightIcon className={'w-4 h-4 text-gray-400 mr-4'} />
</div>
) : null}
<Link
Expand All @@ -35,7 +35,7 @@ export function BreadCrumbs({ className }: { className?: string }) {
>
{target === '/' && (
<svg
className="w-3 h-3 mx-1 mr-2"
className="w-4 h-4 mr-4"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
Expand All @@ -44,7 +44,7 @@ export function BreadCrumbs({ className }: { className?: string }) {
<path d="m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z" />
</svg>
)}
{title}
<span className="mr-4">{title}</span>
</Link>
</li>
))}
Expand Down
5 changes: 2 additions & 3 deletions packages/ui/src/components/Organisms/PageDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ export function PageDisplay(page: PageFragment) {
<PageHero {...page.hero} />
<BreadCrumbs className="mx-auto max-w-3xl" />
</>
) : (
<BreadCrumbs />
)}
) : null}
<div className="bg-white pt-5 pb-12 lg:px-8">
<BreadCrumbs />
<div className="mx-auto max-w-3xl text-base leading-7 text-gray-700">
{page?.content?.filter(isTruthy).map((block, index) => {
switch (block.__typename) {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Routes/Page.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const Default = {
},
},
parameters: {
location: new URL('local:/drupal'),
location: new URL('local:/gatsby-turbo'),
},
} satisfies StoryObj<ViewPageQuery>;

Expand Down

0 comments on commit 7b4a745

Please sign in to comment.