Skip to content

Commit

Permalink
2051-auto-complete-broken-for-typography-tokens (#2060)
Browse files Browse the repository at this point in the history
  • Loading branch information
swordEdge authored Jul 12, 2023
1 parent 71c151f commit 0f8ed2e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/app/components/DownshiftInput/DownshiftInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ export const DownshiftInput: React.FunctionComponent<DownShiftProps> = ({
<StyledItemName>{getHighlightedText(token.name, searchInput || '')}</StyledItemName>
<StyledItemValue>{getResolvedText(token)}</StyledItemValue>
</StyledItem>

);
}}
</StyledList>
Expand Down
24 changes: 12 additions & 12 deletions src/app/components/TypographyInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ import SingleTypographyDownShiftInput from './SingleTypographyDownShiftInput';
import DownshiftInput from './DownshiftInput';
import Stack from './Stack';

const properties = {
fontSize: 'fontSizes',
fontFamily: 'fontFamilies',
fontWeight: 'fontWeights',
letterSpacing: 'letterSpacing',
paragraphSpacing: 'paragraphSpacing',
paragraphIndent: 'paragraphIndent',
textDecoration: 'textDecoration',
lineHeight: 'lineHeights',
textCase: 'textCase',
};

export default function TypographyInput({
internalEditToken,
handleTypographyValueChange,
Expand Down Expand Up @@ -64,18 +76,6 @@ export default function TypographyInput({
setAlias('');
}, [mode, selectedToken, internalEditToken, setTypographyValue]);

const properties = {
fontFamily: t('font.fontFamily'),
fontWeight: t('font.fontWeight'),
fontSize: t('font.fontSize'),
lineHeight: t('font.lineHeight'),
letterSpacing: t('font.letterSpacing'),
paragraphSpacing: t('font.paragraphSpacing'),
paragraphIndent: t('font.paragraphIndent'),
textDecoration: t('font.textDecoration'),
textCase: t('font.textCase'),
};

return (
<Stack direction="column" gap={2}>
<Stack direction="row" gap={2} justify="between" align="center">
Expand Down

0 comments on commit 0f8ed2e

Please sign in to comment.