Merged in feat/SW-3655-input-component (pull request #3296)
feat: (SW-3655) new Input and FormInput components * First version new Input and FormInput components * Handle aria-describedby with react-aria instead of manually add it * Update breaking unit and stories tests * Merge branch 'master' into feat/SW-3655-input-component * Update example form * Merge branch 'master' into feat/SW-3655-input-component * New lock file Approved-by: Linus Flood
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
|
||||
|
||||
import { expect } from 'storybook/test'
|
||||
import { expect, fn } from 'storybook/test'
|
||||
|
||||
import { BackToTopButton } from '.'
|
||||
import { config as backToTopButtonConfig } from './variants'
|
||||
@@ -45,7 +45,7 @@ const globalStoryPropsInverted = {
|
||||
|
||||
export const Default: Story = {
|
||||
args: {
|
||||
onPress: () => alert('Back to top button pressed!'),
|
||||
onPress: fn(),
|
||||
label: 'Back to top',
|
||||
},
|
||||
play: async ({ canvas, userEvent, args }) => {
|
||||
@@ -90,7 +90,7 @@ export const PositionRight: Story = {
|
||||
export const OnDarkBackground: Story = {
|
||||
globals: globalStoryPropsInverted,
|
||||
args: {
|
||||
onPress: () => alert('Back to top button pressed!'),
|
||||
onPress: fn(),
|
||||
label: 'Back to top',
|
||||
},
|
||||
play: async ({ canvas, userEvent, args }) => {
|
||||
|
||||
Reference in New Issue
Block a user