Skip to content

Commit

Permalink
changes palette color description to list
Browse files Browse the repository at this point in the history
  • Loading branch information
egoens committed Aug 23, 2024
1 parent d35dea7 commit d1dfe0a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions next/pages/guidelines/color/palette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { NavigationCaretDownSmall } from '@thumbtack/thumbprint-icons';
import { Text } from '@thumbtack/thumbprint-react';
import { ContentPage } from '../../../components/mdx/mdx';
import getLayoutProps from '../../../utils/get-layout-props';
import { H2, P } from '../../../components/mdx/components';
import { H2, P, LI, UL } from '../../../components/mdx/components';

Check failure on line 11 in next/pages/guidelines/color/palette.tsx

View workflow job for this annotation

GitHub Actions / ESLint

'LI' is defined but never used

Check failure on line 11 in next/pages/guidelines/color/palette.tsx

View workflow job for this annotation

GitHub Actions / ESLint

'UL' is defined but never used
import { paletteColortMappings } from './usage-mappings';

import purple from '../../../images/pages/guide/product/color/palette/purple.png';
Expand Down Expand Up @@ -120,7 +120,13 @@ function ColorSection({ values }: Usage): JSX.Element {
{/* end clickable region */}
<div className="pb3 ph3">
{/* body content */}
<div className="pb3">{values.description}</div>
<div className="pb3">
<ul style={{ listStyle: 'bullet' }} className="ml3">
{values.description.split('\n').map(item => {
return <li>{item}</li>;
})}
</ul>
</div>
{/* tokens */}
<div className="flex flex-row col-gap2 row-gap2 flex-wrap">
{coloredPill({
Expand Down

0 comments on commit d1dfe0a

Please sign in to comment.