Skip to content

Commit

Permalink
fix(modal): adjust padding to account for content negative offset (ca…
Browse files Browse the repository at this point in the history
  • Loading branch information
jendowns authored and asudoh committed Nov 11, 2019
1 parent 90fdb61 commit 952ebcc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/components/src/components/modal/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@

.#{$prefix}--modal-header {
padding-top: 1rem;
margin-bottom: $carbon--spacing-05;
margin-bottom: $carbon--spacing-03;
}

.#{$prefix}--modal-header__label {
Expand All @@ -127,10 +127,14 @@
@include type-style('body-long-01');

overflow-y: auto;
margin-bottom: $carbon--spacing-09;
margin-bottom: $carbon--spacing-08;
color: $text-01;
font-weight: 400;

// Required to accommodate focus outline's negative offset:
padding-top: $carbon--spacing-03;
padding-bottom: $carbon--spacing-03;

&:focus {
@include focus-outline('outline');
}
Expand Down

0 comments on commit 952ebcc

Please sign in to comment.