Skip to content

Commit

Permalink
fix(Banner): Padding breaks for width less than 415px (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinodh99 authored and mlampedx committed Jul 19, 2019
1 parent a810877 commit d7cdfde
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/Banner/Banner.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const Container = styled.div`
transition: max-height 0.3s ${constants.easing.easeInOutQuad},
opacity 0.3s ${constants.easing.easeInQuad};
background-color: ${getThemeValue("white", "muted")};
box-sizing: border-box;
box-sizing: content-box;
opacity: 0;
&.visible-banner {
Expand Down
16 changes: 8 additions & 8 deletions src/components/Banner/__tests__/__snapshots__/index.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`<Banner /> renders correctly when closed 1`] = `<div />`;
exports[`<Banner /> renders correctly when open 1`] = `
<div>
<div
class="collapsed visible-banner sc-gZMcBi bsKZGS"
class="collapsed visible-banner sc-gZMcBi dmfFSg"
style="max-height: 56px;"
>
<div
Expand All @@ -32,7 +32,7 @@ exports[`<Banner /> renders correctly when open 1`] = `
exports[`<Banner /> renders correctly when variant is set 1`] = `
<div>
<div
class="collapsed banner-variant-alert visible-banner sc-gZMcBi bsKZGS"
class="collapsed banner-variant-alert visible-banner sc-gZMcBi dmfFSg"
style="max-height: 56px;"
>
<div
Expand Down Expand Up @@ -91,7 +91,7 @@ exports[`<Banner /> renders correctly when variant is set 1`] = `
exports[`<Banner /> renders correctly with close button 1`] = `
<div>
<div
class="collapsed banner-variant-alert visible-banner sc-gZMcBi bsKZGS"
class="collapsed banner-variant-alert visible-banner sc-gZMcBi dmfFSg"
style="max-height: 56px;"
>
<div
Expand Down Expand Up @@ -150,7 +150,7 @@ exports[`<Banner /> renders correctly with close button 1`] = `
exports[`<Banner /> renders correctly with content 1`] = `
<div>
<div
class="collapsed visible-banner sc-gZMcBi bsKZGS"
class="collapsed visible-banner sc-gZMcBi dmfFSg"
style="max-height: 56px;"
>
<div
Expand Down Expand Up @@ -179,7 +179,7 @@ exports[`<Banner /> renders correctly with content 1`] = `
exports[`<Banner /> renders correctly with custom icon 1`] = `
<div>
<div
class="collapsed visible-banner sc-gZMcBi bsKZGS"
class="collapsed visible-banner sc-gZMcBi dmfFSg"
style="max-height: 56px;"
>
<div
Expand Down Expand Up @@ -230,7 +230,7 @@ exports[`<Banner /> renders correctly with custom icon 1`] = `
exports[`<Banner /> renders correctly with custom title for the close button 1`] = `
<div>
<div
class="collapsed banner-variant-alert visible-banner sc-gZMcBi bsKZGS"
class="collapsed banner-variant-alert visible-banner sc-gZMcBi dmfFSg"
style="max-height: 56px;"
>
<div
Expand Down Expand Up @@ -287,7 +287,7 @@ exports[`<Banner /> renders correctly with custom title for the close button 1`]
exports[`<Banner /> renders correctly with expand/collapse button 1`] = `
<div>
<div
class="collapsed banner-variant-alert visible-banner sc-gZMcBi bsKZGS"
class="collapsed banner-variant-alert visible-banner sc-gZMcBi dmfFSg"
style="max-height: 56px;"
>
<div
Expand Down Expand Up @@ -346,7 +346,7 @@ exports[`<Banner /> renders correctly with expand/collapse button 1`] = `
exports[`<Banner /> renders correctly with link 1`] = `
<div>
<div
class="collapsed banner-variant-alert visible-banner sc-gZMcBi bsKZGS"
class="collapsed banner-variant-alert visible-banner sc-gZMcBi dmfFSg"
style="max-height: 56px;"
>
<div
Expand Down

0 comments on commit d7cdfde

Please sign in to comment.