Skip to content

Commit

Permalink
BannerSlim: fix <sm breakpoint paddingY (#3943)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertCarreras authored Jan 16, 2025
1 parent dab963a commit 1ed8b86
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/pages/web/bannerslim.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ BannerSlim doesn't depend on DeviceTypeProvider to display a mobile view; instea
**[BannerUpsell](/web/bannerupsell)**
An BannerUpsell is used to market new features or to encourage a user to try recommendations.
**[BannerCallout](/web/bannercallout)**
**[BannerCallout](/web/bannercallout)**
BannerCallouts are used at the top-most level of a page to communicate highest-priority information that applies to the entire page or surface. BannerCallouts can be dismissed and are also actionable.
**[Toast](/web/toast)**
Expand Down
1 change: 1 addition & 0 deletions packages/gestalt/src/BannerSlim.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ export default function BannerSlim({
display="flex"
mdDirection="row"
paddingX={isBare ? 0 : 4}
paddingY={isBare ? 0 : 4}
rounding={4}
smPaddingY={isBare ? 1 : 4}
width="100%"
Expand Down
12 changes: 6 additions & 6 deletions packages/gestalt/src/__snapshots__/BannerSlim.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`BannerSlim renders an icon with accessibility label 1`] = `
<div
className="box errorWeak mdDirectionRow paddingX400 rounding4 smPaddingY400 xsDirectionColumn xsDisplayFlex xsItemsCenter"
className="box errorWeak mdDirectionRow paddingX400 paddingY400 rounding4 smPaddingY400 xsDirectionColumn xsDisplayFlex xsItemsCenter"
style={
Object {
"width": "100%",
Expand Down Expand Up @@ -64,7 +64,7 @@ exports[`BannerSlim renders an icon with accessibility label 1`] = `

exports[`BannerSlim renders complex message 1`] = `
<div
className="box mdDirectionRow paddingX400 rounding4 secondary smPaddingY400 xsDirectionColumn xsDisplayFlex xsItemsCenter"
className="box mdDirectionRow paddingX400 paddingY400 rounding4 secondary smPaddingY400 xsDirectionColumn xsDisplayFlex xsItemsCenter"
style={
Object {
"width": "100%",
Expand Down Expand Up @@ -130,7 +130,7 @@ exports[`BannerSlim renders complex message 1`] = `

exports[`BannerSlim renders neutral type with message 1`] = `
<div
className="box mdDirectionRow paddingX400 rounding4 secondary smPaddingY400 xsDirectionColumn xsDisplayFlex xsItemsCenter"
className="box mdDirectionRow paddingX400 paddingY400 rounding4 secondary smPaddingY400 xsDirectionColumn xsDisplayFlex xsItemsCenter"
style={
Object {
"width": "100%",
Expand Down Expand Up @@ -170,7 +170,7 @@ exports[`BannerSlim renders neutral type with message 1`] = `

exports[`BannerSlim renders non-neutral compact with accessibility label 1`] = `
<div
className="box mdDirectionRow paddingX0 rounding4 smPaddingY100 transparent xsDirectionColumn xsDisplayFlex xsItemsCenter"
className="box mdDirectionRow paddingX0 paddingY0 rounding4 smPaddingY100 transparent xsDirectionColumn xsDisplayFlex xsItemsCenter"
style={
Object {
"width": "100%",
Expand Down Expand Up @@ -232,7 +232,7 @@ exports[`BannerSlim renders non-neutral compact with accessibility label 1`] = `

exports[`BannerSlim renders primary action and dismiss button 1`] = `
<div
className="box mdDirectionRow paddingX400 rounding4 secondary smPaddingY400 xsDirectionColumn xsDisplayFlex xsItemsCenter"
className="box mdDirectionRow paddingX400 paddingY400 rounding4 secondary smPaddingY400 xsDirectionColumn xsDisplayFlex xsItemsCenter"
style={
Object {
"width": "100%",
Expand Down Expand Up @@ -391,7 +391,7 @@ exports[`BannerSlim renders primary action and dismiss button 1`] = `

exports[`BannerSlim renders simple message with helper link 1`] = `
<div
className="box mdDirectionRow paddingX400 rounding4 secondary smPaddingY400 xsDirectionColumn xsDisplayFlex xsItemsCenter"
className="box mdDirectionRow paddingX400 paddingY400 rounding4 secondary smPaddingY400 xsDirectionColumn xsDisplayFlex xsItemsCenter"
style={
Object {
"width": "100%",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ exports[`renders correctly with drawer 1`] = `
className="box paddingX200 paddingY200"
>
<div
className="box mdDirectionRow paddingX400 recommendationWeak rounding4 smPaddingY400 xsDirectionColumn xsDisplayFlex xsItemsCenter"
className="box mdDirectionRow paddingX400 paddingY400 recommendationWeak rounding4 smPaddingY400 xsDirectionColumn xsDisplayFlex xsItemsCenter"
style={
Object {
"width": "100%",
Expand Down

0 comments on commit 1ed8b86

Please sign in to comment.