Skip to content

[CCUBE-2251][RYN] remove fixed height for buttons - #1377

Open
ryan-nguyen-t wants to merge 14 commits into
masterfrom
CCUBE-2251
Open

[CCUBE-2251][RYN] remove fixed height for buttons#1377
ryan-nguyen-t wants to merge 14 commits into
masterfrom
CCUBE-2251

Conversation

@ryan-nguyen-t

@ryan-nguyen-t ryan-nguyen-t commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing apis or functionality to change)
  • Documentation (change to documentation, comments or API descriptions)
  • Tests (improvements to unit tests or E2E tests)
  • Other (technical improvements, refactoring, or changes that don't fall into the above categories)

Description of changes

  • Link to ticket
  • Description of changes

Checklist

  • Changes follow the project guidelines in CONTRIBUTING.md and CONVENTIONS.md
  • Looks good on mobile and tablet
  • Updated documentation
  • Added/updated unit tests
  • Added/updated E2E tests

@ryan-nguyen-t ryan-nguyen-t self-assigned this Jul 30, 2026
@ryan-nguyen-t
ryan-nguyen-t marked this pull request as ready for review July 30, 2026 07:21
});

// -------------------------------------------------------------------------
// Large font size (accessibility)

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 header here

});

// -------------------------------------------------------------------------
// Large font size (accessibility)

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.

remove header here too

});

// -------------------------------------------------------------------------
// Large font size (accessibility)

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 header here

Comment thread e2e/tests/components/singpass-button/singpass-button.e2e.spec.ts Outdated
Comment thread e2e/tests/components/image-button/image-button.e2e.spec.ts Outdated
Comment thread src/button/button.styles.ts Outdated
Comment thread src/button/button.styles.ts Outdated
Comment thread src/button/button.styles.ts
@qroll

qroll commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

request: I'm seeing a bunch of button screenshots being updated although they have no visible changes. could you discard those and only commit the new snapshots and snapshots with actual changes?

@qroll

qroll commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

many of the snapshots are still failing. in the case of smart app banner, it's expected as the old height (38px) was incorrect, so the screenshot can be generated. what about the other cases?

Comment thread src/button/button.styles.ts Outdated
Comment on lines +157 to +158
padding: calc(${Spacing["spacing-8"]} - ${Border["width-010"]})
${Spacing["spacing-16"]};

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.

icon is square so the horizontal and vertical padding would be consistent

Suggested change
padding: calc(${Spacing["spacing-8"]} - ${Border["width-010"]})
${Spacing["spacing-16"]};
padding: calc(${Spacing["spacing-8"]} - ${Border["width-010"]});

Comment thread src/button/button.styles.ts Outdated
min-height: 4rem;
`;

export const mainIconOnly = 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.

reorder so that this is below mainIconPositionRight

Comment thread src/button/button.tsx Outdated
? clsx(
sizeClassMap[sizeType]?.base,
sizeClassMap[sizeType]?.iconOnly,
styles.mainIconOnly

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.

reorder to the first entry

@@ -17,8 +17,7 @@ export const main = css`
`;

export const mainSizeSmall = css`
height: 2.5rem;
min-height: unset;
min-height: 2.5rem;

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.

for singpass button, can we also apply the same padding to compensate?

padding: calc(${Spacing["spacing-8"]} - ${Border["width-010"]})
        ${Spacing["spacing-16"]};

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.

for smart app banner, should clean up the height: auto style

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.

same here, let's clean up the height: auto style in toast

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.

filter had custom styles for the buttons. can you check and reconcile the expected behaviour?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants