Skip to content

Commit

Permalink
Simplify bottom section, remove second Edit button, change blue to ne… (
Browse files Browse the repository at this point in the history
#2504)

* Simplify bottom section, remove second Edit button, change blue to neutral

* Formatting fix

* Formatting fix
  • Loading branch information
lsgunnlsgunn authored Sep 19, 2024
1 parent e8d39a8 commit 8c7554e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import Link from 'next/link';
import type { FC } from 'react';
import React from 'react';
import { PageHelpful } from '../PageHelpful/PageHelpful';
import { EditPage } from './components/EditPage';
import { Subscribe } from './components/Subscribe';
import {
bottomWrapperClass,
Expand All @@ -21,7 +20,6 @@ interface IProps {
}

export const BottomPageSection: FC<IProps> = ({
editLink,
navigation,
layout = 'default',
}) => {
Expand All @@ -45,11 +43,8 @@ export const BottomPageSection: FC<IProps> = ({

return (
<footer className={classes}>
<Grid columns={{ xs: 1, lg: 3, xl: 4 }}>
<GridItem columnSpan={1}>
<EditPage editLink={editLink} />
</GridItem>
<GridItem columnSpan={{ xs: 1, lg: 2, xl: 3 }}>
<Grid columns={{ xs: 1, xl: 4 }}>
<GridItem columnSpan={{ xs: 1, xl: 4 }}>
<Stack
flexDirection="row"
justifyContent="space-between"
Expand All @@ -62,8 +57,6 @@ export const BottomPageSection: FC<IProps> = ({
}
href={navigation?.previous.root}
>
previous:
<br />
{navigation?.previous.title}
</Link>
)}
Expand All @@ -72,8 +65,6 @@ export const BottomPageSection: FC<IProps> = ({
onClick={() => onClickAction('next', navigation?.next?.root)}
href={navigation?.next.root}
>
next:
<br />
{navigation?.next.title}
</Link>
)}
Expand All @@ -88,7 +79,7 @@ export const BottomPageSection: FC<IProps> = ({
width="100%"
gap={{ xs: 'xl', lg: 'xs' }}
>
<PageHelpful editLink={editLink} />
<PageHelpful />
<Subscribe />
</Stack>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/docs/src/components/DocsCard/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const cardClass = style([
}),
{
transition: 'all .3s ease',
backgroundColor: tokens.kda.foundation.color.palette.blue.n1,
backgroundColor: tokens.kda.foundation.color.neutral.n1,
color: tokens.kda.foundation.color.text.base.default,
},
]);
Expand Down
5 changes: 1 addition & 4 deletions packages/apps/docs/src/components/Layout/Full/Full.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ export const Full: FC<IPageProps> = ({
editLink={frontmatter.editLink}
/>
{children}
<BottomPageSection
editLink={frontmatter.editLink}
navigation={frontmatter.navigation}
/>
<BottomPageSection navigation={frontmatter.navigation} />
</article>
</div>
<BackgroundGradient />
Expand Down

0 comments on commit 8c7554e

Please sign in to comment.