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

includes className prop on tooltip/TooltipMessage component #211

Merged
merged 2 commits into from
Oct 9, 2020
Merged
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
14 changes: 13 additions & 1 deletion src/components/tooltip/TooltipMessage.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import styled from 'styled-components';
import WithTooltip from './WithTooltip';

import { TooltipMessage } from './TooltipMessage';

export default {
Expand Down Expand Up @@ -55,3 +55,15 @@ export const minimalMessage = () => (
);

minimalMessage.storyName = 'minimal message';

export const withCustomClass = () => {
const CustomWrapper = styled(TooltipMessage)`
background: black;
& * {
color: white;
}
`;
return <CustomWrapper desc="Amet consectatur vestibulum concet durum politu coret weirom" />;
};

withCustomClass.storyName = 'with custom className';