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

refactor(ui): merge button and icon-button component #618

Merged
merged 88 commits into from
Jul 28, 2023

Conversation

tobi-or-not-tobi
Copy link
Contributor

@tobi-or-not-tobi tobi-or-not-tobi commented Jul 18, 2023

The button component has gone through some changes. The button now supports an icon type, so that the icon-button component could be dropped.

closes: HRZ-3283

BREAKING CHANGE:

  • The oryx-icon-button is removed, use <oryx-button type="icon"> going forward.
  • Previously, it was mandatory to slot in a <button> or <a> element. While this is still supported, using the slot="custom", buttons will now create the button or link based on properties.
  • The type property was previously used to indicate both the color and style. This has been separated, so that you can define the type using the ButtonType enum (solid, outline, icon or text) and the color using the ButtonColor enum (primary, neutral or error) separately.
  • Previously the outline was set as a separate property, this property is removed and moved into the ButtonType enum.
  • The size property is now limited to the values of the ButtonType, so that other sizes (xs and xl) cannot be used on the button component.

@netlify
Copy link

netlify bot commented Jul 18, 2023

Deploy Preview for dev-composable-storefront ready!

Name Link
🔨 Latest commit 1164c81
🔍 Latest deploy log https://app.netlify.com/sites/dev-composable-storefront/deploys/64c386237f3ab700083a4c2c
😎 Deploy Preview https://deploy-preview-618--dev-composable-storefront.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Jul 18, 2023

Deploy Preview for dev-oryx-components ready!

Name Link
🔨 Latest commit 1164c81
🔍 Latest deploy log https://app.netlify.com/sites/dev-oryx-components/deploys/64c38623a428d80008c8a15a
😎 Deploy Preview https://deploy-preview-618--dev-oryx-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Jul 18, 2023

Deploy Preview for dev-fulfillment ready!

Name Link
🔨 Latest commit 1164c81
🔍 Latest deploy log https://app.netlify.com/sites/dev-fulfillment/deploys/64c38623c2c9c700080bd0dd
😎 Deploy Preview https://deploy-preview-618--dev-fulfillment.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@cypress
Copy link

cypress bot commented Jul 18, 2023

Passing run #9142 ↗︎

0 42 0 0 Flakiness 0

Details:

fix button aspect ratio
Project: Composable Storefront Commit: 1164c81270
Status: Passed Duration: 03:55 💡
Started: Jul 28, 2023 9:17 AM Ended: Jul 28, 2023 9:21 AM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@tobi-or-not-tobi tobi-or-not-tobi marked this pull request as draft July 18, 2023 06:38
@cypress
Copy link

cypress bot commented Jul 18, 2023

Passing run #1923 ↗︎

0 27 0 0 Flakiness 0

Details:

fix button aspect ratio
Project: Fulfillment App Commit: 1164c81270
Status: Passed Duration: 04:51 💡
Started: Jul 28, 2023 9:17 AM Ended: Jul 28, 2023 9:22 AM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

libs/base/ui/action/button/button.component.ts Outdated Show resolved Hide resolved
libs/base/ui/action/button/button.component.ts Outdated Show resolved Hide resolved
libs/base/ui/action/button/button.component.ts Outdated Show resolved Hide resolved
libs/domain/cart/add/src/add.component.ts Outdated Show resolved Hide resolved
libs/domain/order/entries/entries.component.ts Outdated Show resolved Hide resolved
@tobi-or-not-tobi tobi-or-not-tobi marked this pull request as ready for review July 27, 2023 10:53
@Sinucid Sinucid self-requested a review July 27, 2023 14:13
Sinucid
Sinucid previously approved these changes Jul 27, 2023
@Sinucid Sinucid self-requested a review July 28, 2023 10:09
@tobi-or-not-tobi tobi-or-not-tobi merged commit 7d3cf72 into development Jul 28, 2023
28 checks passed
@tobi-or-not-tobi tobi-or-not-tobi deleted the refactor/buttons branch July 28, 2023 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants