Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add LinkButton to mosaic markdown components #439

Merged
merged 2 commits into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/light-cherries-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@jpmorganchase/mosaic-components': patch
'@jpmorganchase/mosaic-site': patch
---

`LinkButton` added to default MDX components.
1 change: 1 addition & 0 deletions packages/components/src/LinkButton.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default {
{
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'center',
letterSpacing: '0.6px',
fontWeight: vars.fontWeight.bold,
fontSize: vars.fontSize.s50,
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/Markdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ import { withStyledTypography } from '../Typography/withStyledTypography';
import { withMarkdownSpacing } from './withMarkdownSpacing';
import { ListItem, OrderedList, UnorderedList } from '../List';
import type { ListItemProps, OrderedListProps, UnOrderedListProps } from '../List';
import { LinkButton, LinkButtonProps } from '../LinkButton';

export { getMarkdownElements } from './markdownElements';

Expand Down Expand Up @@ -142,6 +143,7 @@ export const getMarkdownComponents = () => ({
Label: withMarkdownSpacing<LabelProps>(Label),
Link,
LinkBase: withMarkdownSpacing<LinkBaseProps>(LinkBase),
LinkButton: withMarkdownSpacing<LinkButtonProps>(LinkButton),
LinkText: withMarkdownSpacing<LinkTextProps>(LinkText),
Links: withMarkdownSpacing<LinksProps>(Links),
ListItem: withMarkdownSpacing<ListItemProps>(ListItem),
Expand Down