Skip to content

Commit

Permalink
fix(inline-notification): add 8px right padding if close button is hi…
Browse files Browse the repository at this point in the history
…dden (#4873)
  • Loading branch information
jendowns authored and asudoh committed Dec 16, 2019
1 parent 36352fa commit 36b9762
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@
}
}

.#{$prefix}--inline-notification--hide-close-button
.#{$prefix}--inline-notification__action-button.#{$prefix}--btn--ghost {
margin-right: $carbon--spacing-03;
}

.#{$prefix}--inline-notification__close-button {
@include focus-outline('reset');
display: flex;
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/components/Notification/Notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ export class InlineNotification extends Component {
{
[`${prefix}--inline-notification--low-contrast`]: lowContrast,
[`${prefix}--inline-notification--${kind}`]: kind,
[`${prefix}--inline-notification--hide-close-button`]: hideCloseButton,
},
className
);
Expand Down

0 comments on commit 36b9762

Please sign in to comment.