Skip to content

Commit

Permalink
Fix primefaces#4360: Button fix icon loading class
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed May 10, 2023
1 parent 7e56688 commit 8f9c805
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/lib/button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const Button = React.memo(
ptm('icon')
);

className = classNames({
className = classNames(className, {
'p-button-loading-icon': props.loading
});

Expand Down
2 changes: 1 addition & 1 deletion components/lib/button/__snapshots__/Button.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ exports[`Button when click the button if loading is true it renders Button with
>
<svg
aria-hidden="true"
class="p-icon p-icon-spin p-button-loading-icon"
class="p-icon p-icon-spin p-button-icon p-c p-button-loading-icon"
fill="none"
height="14"
viewBox="0 0 14 14"
Expand Down

0 comments on commit 8f9c805

Please sign in to comment.