From c77c58e18143233be042c4980a6ed08ae9beac52 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 16 May 2022 19:40:23 +0200 Subject: chore: adjust and complete missing styles * add logo to topics pages and links * add Prism styles to articles * and a few other adjustements --- .../organisms/widgets/sharing.stories.tsx | 21 +++++++++++++-------- src/components/organisms/widgets/sharing.tsx | 7 ++++++- 2 files changed, 19 insertions(+), 9 deletions(-) (limited to 'src/components/organisms/widgets') diff --git a/src/components/organisms/widgets/sharing.stories.tsx b/src/components/organisms/widgets/sharing.stories.tsx index 47213b6..59b86d3 100644 --- a/src/components/organisms/widgets/sharing.stories.tsx +++ b/src/components/organisms/widgets/sharing.stories.tsx @@ -1,5 +1,4 @@ import { ComponentMeta, ComponentStory } from '@storybook/react'; -import { IntlProvider } from 'react-intl'; import SharingWidget from './sharing'; /** @@ -9,6 +8,19 @@ export default { title: 'Organisms/Widgets', component: SharingWidget, argTypes: { + className: { + control: { + type: 'text', + }, + description: 'Set additional classnames to the sharing links list.', + table: { + category: 'Styles', + }, + type: { + name: 'string', + required: false, + }, + }, data: { description: 'The page data.', type: { @@ -58,13 +70,6 @@ export default { }, }, }, - decorators: [ - (Story) => ( - - - - ), - ], } as ComponentMeta; const Template: ComponentStory = (args) => ( diff --git a/src/components/organisms/widgets/sharing.tsx b/src/components/organisms/widgets/sharing.tsx index 85dadb0..c63f5db 100644 --- a/src/components/organisms/widgets/sharing.tsx +++ b/src/components/organisms/widgets/sharing.tsx @@ -22,6 +22,10 @@ export type SharingData = { }; export type SharingProps = { + /** + * Set additional classnames to the sharing links list. + */ + className?: string; /** * The page data to share. */ @@ -46,6 +50,7 @@ export type SharingProps = { * Render a list of sharing links inside a widget. */ const Sharing: FC = ({ + className = '', data, media, expanded = true, @@ -201,7 +206,7 @@ const Sharing: FC = ({ return ( -
    {getItems()}
+
    {getItems()}
); }; -- cgit v1.2.3