Skip to content

Commit

Permalink
fix(button-icon): add selected styling to border inverse variant (#3115)
Browse files Browse the repository at this point in the history
  • Loading branch information
engai authored Mar 8, 2018
1 parent f977204 commit 2624d4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ui/components/button-icons/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ class ButtonIcon extends Component {
} else if (theme === 'inverse') {
variant = 'slds-button_icon-inverse';

if (size) {
if (size === 'medium') {
variant = 'slds-button_icon-border-inverse';
size = null;
}
/**
* Brand
Expand Down
3 changes: 2 additions & 1 deletion ui/components/button-icons/stateful/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
.slds-button--icon-container.slds-is-selected,
.slds-button_icon-border.slds-is-selected,
.slds-button--icon-border.slds-is-selected,
.slds-button_icon-border-filled.slds-is-selected {
.slds-button_icon-border-filled.slds-is-selected,
.slds-button_icon-border-inverse.slds-is-selected {
@include button-brand;

.slds-button__icon {
Expand Down

0 comments on commit 2624d4f

Please sign in to comment.