Skip to content

[BOOKINGSG-9284][ZZ] refactor: migrate date range input to linaria#1177

Open
ziggyzet wants to merge 8 commits into
pre-release/v4from
ZZ/B9284
Open

[BOOKINGSG-9284][ZZ] refactor: migrate date range input to linaria#1177
ziggyzet wants to merge 8 commits into
pre-release/v4from
ZZ/B9284

Conversation

@ziggyzet
Copy link
Copy Markdown

Checklist

  • Migrated the component styles
    • className is chained correctly with clsx
    • User style prop is set as CSS variable
  • Changes follow the project guidelines in CONVENTIONS_V4.md
    - [ ] Updated Storybook documentation
    - [ ] Added/updated unit tests
  • Added visual tests
    - [ ] Listed breaking changes

// =============================================================================
// STYLING
// =============================================================================
export const container = css``;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove this empty css style

@qroll qroll added the type: chore For technical improvements or refactoring. label May 14, 2026
@qroll qroll added this to the v4.0.0-alpha.3 milestone May 14, 2026
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is is being blocked by the dropdown

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm why the background for the input still white in dark mode?

Comment on lines +100 to +111
await expect(story.locators.defaultFormInput).toMatchAriaSnapshot(`
- group "Default"
`);
await expect(story.locators.disabledFormInput).toMatchAriaSnapshot(`
- group "Disabled" [disabled]
`);
await expect(story.locators.readonlyFormInput).toMatchAriaSnapshot(`
- group "Readonly"
`);
await expect(story.locators.errorFormInput).toMatchAriaSnapshot(`
- group "Error"
`);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also include the child elements (textbox) like what was done for date-input

await story.init("form-variants", { size: "mobile" });
});

test("Form.DateRangeInput variants (mobile)", async ({ story }) => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we also include a snapshot of the calendar open state on mobile? this is to ensure the dropdown looks ok on smaller widths

});
});

test.describe("Disabled", () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be removed since it's covered by the form variants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: chore For technical improvements or refactoring.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants