Skip to content

[BOOKINGSG-9308][IT] Migrate uneditable section component#1179

Open
iant-gds wants to merge 7 commits into
pre-release/v4from
BOOKINGSG-9308
Open

[BOOKINGSG-9308][IT] Migrate uneditable section component#1179
iant-gds wants to merge 7 commits into
pre-release/v4from
BOOKINGSG-9308

Conversation

@iant-gds
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

@iant-gds iant-gds self-assigned this May 14, 2026
@iant-gds iant-gds marked this pull request as draft May 14, 2026 08:03
@iant-gds iant-gds marked this pull request as ready for review May 14, 2026 08:41
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Lets add a border to indicate the custom sections

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It seems this is meant to be deleted and we're using the Partial-custom one

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Lets not include loading into the cases as the animation makes it unstable

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.

we can still include loading, should be alright since this is a css animation, and playwright pauses it accordingly. but the timer manipulation needs to be consistent. link-list did something similar, can reference that

grid-column: 1 / -1;
}

overflow-wrap: break-word;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Lets move this to the top alongside other properties before any selector

Comment on lines +34 to +36
export const fullWidthWrapperBackground = css`
background: ${Colour["bg-strong"]};
`;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Both full width and regular have the same background, let's just use one

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 this doesn't look right, it's supposed to switch to 1 column view on mobile

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 include a mobile screenshot of this?

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.

we can still include loading, should be alright since this is a css animation, and playwright pauses it accordingly. but the timer manipulation needs to be consistent. link-list did something similar, can reference that

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.

ehhhh we don't probably don't need ALL masked variants since a lot of this is programmatic, and doesn't have a visual difference

just check if they are covered in the unit tests, if not, add the scenarios there. remove from the e2e test

Comment on lines +16 to +18
&[data-width="half"].containerFullWidth {
grid-column: auto / span 1;
}
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 are the classes still nested? and the class name will change in the final build so we should not be hardcoding the class name like this

`;

export const fullWidthWrapper = css`
background: transparent;
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.

divs are transparent by default so this class looks unnecessary

`;

export const wrapper = css`
background: transparent;
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.

as above. unnecessary property

@qroll qroll added the type: chore For technical improvements or refactoring. label May 15, 2026
@qroll qroll added this to the v4.0.0-alpha.3 milestone May 15, 2026
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