Skip to content

Commit 0af10f6

Browse files
committed
Hide bubble effects from Chromatic
1 parent 2763dfb commit 0af10f6

File tree

2 files changed

+14
-20
lines changed

2 files changed

+14
-20
lines changed

src/SIL.XForge.Scripture/ClientApp/src/xforge-common/bubble-button/bubble-button.directive.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ export class BubbleButtonDirective implements OnInit {
1414
cssButtonStyleClass = 'sf-bubble-button';
1515
cssButtonAnimationClass = 'sf-bubble-animate';
1616

17-
constructor(private readonly el: ElementRef, private readonly renderer: Renderer2) {}
17+
constructor(
18+
private readonly el: ElementRef,
19+
private readonly renderer: Renderer2
20+
) {}
1821

1922
ngOnInit(): void {
2023
const hostElement = this.el.nativeElement;

src/SIL.XForge.Scripture/ClientApp/src/xforge-common/bubble-button/bubble-button.stories.ts

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,32 @@ export default {
1818
</div>
1919
`
2020
)
21-
]
21+
],
22+
parameters: {
23+
chromatic: { disableSnapshot: true }
24+
}
2225
} as Meta;
2326

2427
type Story = StoryObj;
2528

2629
export const MatRaisedButton: Story = {
27-
render: () => ({
28-
template: `<button mat-raised-button sfBubbleButton color="primary">Mat raised button</button>`
29-
})
30+
render: () => ({ template: `<button mat-raised-button sfBubbleButton color="primary">Mat raised button</button>` })
3031
};
3132

3233
export const MatFlatButton: Story = {
33-
render: () => ({
34-
template: `<button mat-flat-button sfBubbleButton color="primary">Mat flat button</button>`
35-
})
34+
render: () => ({ template: `<button mat-flat-button sfBubbleButton color="primary">Mat flat button</button>` })
3635
};
3736

3837
export const MatStrokedButton: Story = {
39-
render: () => ({
40-
template: `<button mat-stroked-button sfBubbleButton color="primary">Mat stroked button</button>`
41-
})
38+
render: () => ({ template: `<button mat-stroked-button sfBubbleButton color="primary">Mat stroked button</button>` })
4239
};
4340

4441
export const MatButton: Story = {
45-
render: () => ({
46-
template: `<button mat-button sfBubbleButton color="primary">Mat button</button>`
47-
})
42+
render: () => ({ template: `<button mat-button sfBubbleButton color="primary">Mat button</button>` })
4843
};
4944

5045
export const VanillaButton: Story = {
51-
render: () => ({
52-
template: `<button sfBubbleButton color="primary">Vanilla button</button>`
53-
})
46+
render: () => ({ template: `<button sfBubbleButton color="primary">Vanilla button</button>` })
5447
};
5548

5649
export const LongTextButton: Story = {
@@ -60,7 +53,5 @@ export const LongTextButton: Story = {
6053
};
6154

6255
export const ShortTextButton: Story = {
63-
render: () => ({
64-
template: `<button mat-flat-button sfBubbleButton color="primary">Ok</button>`
65-
})
56+
render: () => ({ template: `<button mat-flat-button sfBubbleButton color="primary">Ok</button>` })
6657
};

0 commit comments

Comments
 (0)