Skip to content

Commit

Permalink
web: separated the "with Title" and "without Title" stories.
Browse files Browse the repository at this point in the history
  • Loading branch information
kensternberg-authentik committed Oct 9, 2023
1 parent 26740e8 commit 5d9a3ce
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions web/src/components/ak-hint/ak-hint.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,33 @@ const container = (testItem: TemplateResult) =>
</div>`;

export const Default = () => {
return container(
html` <section class="pf-c-page__main-section pf-m-no-padding-mobile">
<ak-hint>
<ak-hint-body>
<p style="padding-bottom: 1rem;">
Authentik has a new Application Wizard that can configure both an
application and its authentication provider at the same time.
<a href="(link to docs)">Learn more about the wizard here.</a>
</p>
<ak-action-button
class="pf-m-secondary"
.apiRequest=${() => {
showMessage({
message: "This would have shown the wizard",
level: MessageLevel.success,
});
}}
>Create with Wizard</ak-action-button
></ak-hint-body
>
</ak-hint>
</section>`,
);
};


export const WithTitle = () => {
return container(
html` <section class="pf-c-page__main-section pf-m-no-padding-mobile">
<ak-hint>
Expand Down

0 comments on commit 5d9a3ce

Please sign in to comment.