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

fix(tooltip): tooltip stories not shown #1238

Merged
merged 1 commit into from
Feb 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions components/tooltip/stories/tooltip.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Template = args => html`
</style>
<div class="tooltip-wrapper" >
<vwc-icon-button icon="info-line" shape="circled" aria-describedby="tooltip" id="button" @click=${onClick}></vwc-icon-button>
<vwc-tooltip ...=${spread(args)} icon="info-line" style="--tooltip-inline-size:180px;" id="tooltip" anchor="button" text="I'm the tooltip content", ></vwc-tooltip>
<vwc-tooltip ...=${spread(args)} open icon="info-line" style="--tooltip-inline-size:180px;" id="tooltip" anchor="button" text="I'm the tooltip content", ></vwc-tooltip>
</div>
`;

Expand All @@ -39,14 +39,14 @@ const AfterTitleTemplate = args => html`
<vwc-text font-face="title-2" tight><p class="line" style="margin-right: 0.25rem">I'm a title - press the question mark</p></vwc-text>
<vwc-icon-button icon="info-line" shape="circled" aria-describedby="tooltip" id="button" @click=${onClick}></vwc-icon-button>
<div>
<vwc-tooltip ...=${spread(args)} icon="info-line" style="--tooltip-inline-size:180px;" id="tooltip" anchor="button" text="I'm the tooltip content"></vwc-tooltip>
<vwc-tooltip ...=${spread(args)} open icon="info-line" style="--tooltip-inline-size:180px;" id="tooltip" anchor="button" text="I'm the tooltip content"></vwc-tooltip>
</div>
`;

export const InATitle = AfterTitleTemplate.bind({});
InATitle.args = { corner: "top" };
export const InTitle = AfterTitleTemplate.bind({});
InTitle.args = { corner: "top" };

const InsideTExtTemplate = args => html`
const InsideTextTemplate = args => html`
<style>
.tooltip-wrapper {
margin-top: 4rem;
Expand All @@ -57,7 +57,7 @@ const InsideTExtTemplate = args => html`
<vwc-text style="display: flex; align-items: center;" font-face="body-1" tight>text with tooltip - press the question mark
<vwc-icon-button style="margin: 0 0.125rem;" icon="info-line" shape="circled" aria-describedby="tooltip" id="button" dense @click=${onClick}></vwc-icon-button>
more text after tooltip</vwc-text>
<vwc-tooltip ...=${spread(args)} icon="info-line" style="--tooltip-inline-size:180px;" id="tooltip" anchor="button" text="I'm the tooltip content"></vwc-tooltip>
<vwc-tooltip ...=${spread(args)} open icon="info-line" style="--tooltip-inline-size:180px;" id="tooltip" anchor="button" text="I'm the tooltip content"></vwc-tooltip>
</div>
`;

Expand Down