+
Skip to content

Conversation

ynotdraw
Copy link
Collaborator

🚀 Description

Add a size attribute to Icon Button to allow for size="large".

📋 Checklist

  • I have followed the Contributing Guidelines.
  • I have added tests to cover new or updated functionality.
  • I have added or updated Storybook stories.
  • I have localized new strings.
  • I have followed the ARIA Authoring Practices Guide or met with the Accessibility Team.
  • I have included a changeset.
  • I have scheduled a design review.
  • I have reviewed the Storybook and Visual Test Report links below.

🔬 Manual Testing

Visual tests should be enough, but to test some design-specific asks:

  1. Go to Icon Button's story.
  2. Switch to the tertiary variant.
  3. Toggle between the different sizes.
  4. Verify the Icon Button size doesn't change.

@ynotdraw ynotdraw self-assigned this Sep 15, 2025
Copy link

changeset-bot bot commented Sep 15, 2025

🦋 Changeset detected

Latest commit: 1f47560

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@crowdstrike/glide-core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Did the same thing I did for Button, looping over variant and testing. Unfortunately this muddies the test report, but going forward it should be better.

await expect(page).toHaveScreenshot(
`${test.titlePath.join('.')}.png`,
);
});
Copy link
Collaborator Author

@ynotdraw ynotdraw Sep 15, 2025

Choose a reason for hiding this comment

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

Figured this would be a good thing to test, as we have active states for our buttons and testing those when not disabled is arguably more important than testing them being disabled. Let me know if you feel otherwise.

@ynotdraw ynotdraw marked this pull request as ready for review September 15, 2025 19:09
@ynotdraw ynotdraw added this pull request to the merge queue Sep 15, 2025
Merged via the queue into main with commit c9cdbbb Sep 15, 2025
22 checks passed
@ynotdraw ynotdraw deleted the large-icon-button branch September 15, 2025 19:54
@github-actions github-actions bot mentioned this pull request Sep 15, 2025
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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载