Skip to content

Commit 1966bdc

Browse files
committed
check for isChromatic
1 parent c992400 commit 1966bdc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

stories/auth/login/login.example.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
2+
import isChromatic from 'chromatic/isChromatic';
13
import { css, CSSResultGroup, html, LitElement } from 'lit';
24
import { customElement, state } from 'lit/decorators.js';
3-
import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
45
import { ifDefined } from 'lit/directives/if-defined.js';
56

67
@customElement('uui-login-example')
@@ -55,7 +56,9 @@ export class UUILoginExample extends LitElement {
5556
];
5657

5758
@state()
58-
private _greeting: string = this._greetings[new Date().getDay()];
59+
private _greeting: string = isChromatic()
60+
? this._greetings[2]
61+
: this._greetings[new Date().getDay()];
5962

6063
render() {
6164
return html`

0 commit comments

Comments
 (0)