Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(button): fix disable state of the button (#12151)
### Related Ticket(s) [ADCMS-6961](https://jsw.ibm.com/browse/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 <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
- Loading branch information