Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new icon button component #3297

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

enesozturk
Copy link
Contributor

@enesozturk enesozturk commented Nov 21, 2024

Description

Adds new Icon Button component

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • 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 functionality to not work as expected)

Associated Issues

For Linear issues: Closes APKT-1482
For GH issues: closes #...

Showcase (Optional)

If there is a UI change include the screenshots with before and after state.
If new feature is being introduced, include the link to demo recording.

Checklist

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

Copy link

changeset-bot bot commented Nov 21, 2024

⚠️ No Changeset found

Latest commit: 8061d4f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Copy link

vercel bot commented Nov 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
appkit-gallery-new 🛑 Canceled (Inspect) Nov 21, 2024 11:26am
appkit-laboratory 🛑 Canceled (Inspect) 💬 Add feedback Nov 21, 2024 11:26am
appkit-vue-solana 🛑 Canceled (Inspect) Nov 21, 2024 11:26am
appkit-wagmi-cdn-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2024 11:26am
vue-wagmi-example 🛑 Canceled (Inspect) Nov 21, 2024 11:26am

Copy link

linear bot commented Nov 21, 2024

APKT-1482 Icon Button

@enesozturk enesozturk changed the title feat/new icon button component feat: new icon button component Nov 21, 2024
Copy link
Contributor

github-actions bot commented Nov 21, 2024

Coverage Report for Coverage

Status Category Percentage Covered / Total
🔵 Lines 335.65% 4838 / 23606
🔵 Statements 335.65% 4838 / 23606
🔵 Functions 368.88% 388 / 1431
🔵 Branches 475.80999999999995% 745 / 1724
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/ui-new/src/composites/wui-icon-button/index.ts 0% 0% 0% 0%
packages/ui-new/src/composites/wui-icon-button/styles.ts 0% 0% 0% 0%
packages/ui-new/src/utils/TypeUtil.ts 0% 100% 100% 0%
Generated in workflow #7502 for commit 8061d4f by the Vitest Coverage Report Action

Comment on lines +17 to +21
@property() variant: IconButtonVariant = 'neutral-primary'

@property() size: IconButtonSize = 'md'

@property({ type: Boolean }) public disabled = false
Copy link
Contributor

Choose a reason for hiding this comment

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

Amazing!

}

button:not([disabled]):active,
button:not([disabled]):focus-visible {
Copy link
Contributor

Choose a reason for hiding this comment

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

🙌

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.

2 participants