Skip to content

Commit df5ba2a

Browse files
authored
[Button] Allow Icons with intent to be displayed inside default Buttons (#7549)
1 parent 2894105 commit df5ba2a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/core/src/components/button/_button.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,15 @@
9090
}
9191

9292
#{$icon-classes} {
93-
color: $pt-icon-color;
94-
9593
&.#{$ns}-align-right {
9694
margin-left: $button-icon-spacing;
9795
}
9896
}
9997

98+
.#{$ns}-icon:not([class*="#{$ns}-intent-"]) {
99+
color: $pt-icon-color;
100+
}
101+
100102
// button with SVG icon only (no text or children)
101103
.#{$ns}-icon:first-child:last-child,
102104
// if loading, then it contains exactly [spinner, icon]

0 commit comments

Comments
 (0)