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

fix(button): fix disable state of the button #12151

Merged
merged 3 commits into from
Dec 6, 2024

Conversation

m4olivei
Copy link
Contributor

@m4olivei m4olivei commented Dec 6, 2024

Related Ticket(s)

ADCMS-6961

Description

Fixes some odd icon logic left in the button component. The fix allows us to consistently re-render the correct CTA type icon whenever a change in the parent component may mean a different <slot name="icon"> element is rendered. This allows for consistency across disable/active states.

Testing instructions

  • Toggling disable knob and/or changing the href should maintain the expected icon and reflect the relevant state.
  • Change CTA type knob state to make sure it reflects the right value

Changelog

Changed

  • Fixed icon issues in the button component for disable state

Copy link

netlify bot commented Dec 6, 2024

Deploy Preview for ibm-dotcom-web-components ready!

Name Link
🔨 Latest commit a554a11
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components/deploys/675346c64d6653000894cdea
😎 Deploy Preview https://deploy-preview-12151--ibm-dotcom-web-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.

Copy link
Contributor

@marcelojcs marcelojcs left a comment

Choose a reason for hiding this comment

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

All works as expected

@andy-blum andy-blum added the Ready to merge Label for the pull requests that are ready to merge label Dec 6, 2024
@kodiakhq kodiakhq bot merged commit 32a8214 into release/v2.16.0 Dec 6, 2024
18 checks passed
@kodiakhq kodiakhq bot deleted the fix/button-disabled branch December 6, 2024 19:20
Copy link
Contributor

Hey there! This issue/pull request was referenced in recently released v2.16.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants