Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions apps/docs/docs/components/feedback/Banner/_webExamples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,25 @@ You can customize `borderRadius` to soften contextual and in-line banners.
:::tip
Avoid setting `borderRadius` for `styleVariant="global"` so the vertical status bar remains aligned.
:::

### Bleed with Margin Props

When using negative `margin*` props to create a bleed effect, explicitly set `width` so the Banner expands beyond its container.

```tsx live
<VStack height={150} background="bgPositiveWash">
<Banner
marginX={-2}
startIcon="info"
startIconActive
styleVariant="contextual"
title="Bleeding banner"
variant="informational"
width="auto"
>
<Text as="p" font="label2">
Use with prop to override the default 100% width
</Text>
</Banner>
</VStack>
```
4 changes: 4 additions & 0 deletions packages/common/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.

<!-- template-start -->

## 8.44.1 ((2/10/2026, 12:05 PM PST))

This is an artificial version bump with no new change.

## 8.44.0 (2/9/2026 PST)

#### 🚀 Updates
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coinbase/cds-common",
"version": "8.44.0",
"version": "8.44.1",
"description": "Coinbase Design System - Common",
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions packages/mcp-server/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.

<!-- template-start -->

## 8.44.1 ((2/10/2026, 12:05 PM PST))

This is an artificial version bump with no new change.

## 8.44.0 ((2/9/2026, 07:07 PM PST))

This is an artificial version bump with no new change.
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coinbase/cds-mcp-server",
"version": "8.44.0",
"version": "8.44.1",
"description": "Coinbase Design System - MCP Server",
"repository": {
"type": "git",
Expand Down
4 changes: 3 additions & 1 deletion packages/mobile/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ All notable changes to this project will be documented in this file.

<!-- template-start -->

## Unreleased
## 8.44.1 ((2/10/2026, 12:05 PM PST))

This is an artificial version bump with no new change.

#### 📘 Misc

Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coinbase/cds-mobile",
"version": "8.44.0",
"version": "8.44.1",
"description": "Coinbase Design System - Mobile",
"repository": {
"type": "git",
Expand Down
6 changes: 5 additions & 1 deletion packages/web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ All notable changes to this project will be documented in this file.

<!-- template-start -->

## Unreleased
## 8.44.1 (2/10/2026 PST)

#### 🐞 Fixes

- Enabled customer to override the width prop in Banner so they can explicitly pass in a width for any bleed effect. [[#383](https://github.com/coinbase/cds/pull/383)]

#### 📘 Misc

Expand Down
2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coinbase/cds-web",
"version": "8.44.0",
"version": "8.44.1",
"description": "Coinbase Design System - Web",
"repository": {
"type": "git",
Expand Down
5 changes: 3 additions & 2 deletions packages/web/src/banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export const Banner = memo(
marginBottom,
marginStart,
marginEnd,
width = '100%',
...props
}: BannerProps,
ref: React.ForwardedRef<HTMLDivElement>,
Expand Down Expand Up @@ -201,7 +202,7 @@ export const Banner = memo(
const content = (
<Box
position="relative"
width="100%"
width={width}
{...(!showDismiss && marginStyles)}
height="fit-content"
>
Expand Down Expand Up @@ -301,7 +302,7 @@ export const Banner = memo(
display="block"
height="fit-content"
position="relative"
width="100%"
width={width}
{...marginStyles}
>
<Collapsible
Expand Down
4 changes: 3 additions & 1 deletion packages/web/src/banner/__stories__/Banner.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type ExampleProps = Pick<
| 'startIconActive'
| 'startIconAccessibilityLabel'
| 'closeAccessibilityLabel'
| 'width'
>;

const exampleProps: ExampleProps = {
Expand All @@ -38,6 +39,7 @@ const examplePropsWithMargin: ExampleProps = {
...exampleProps,
marginX: -2,
children: shortMessage,
width: 'calc(100% + var(--space-4))',
};

const styleProps: BannerProps[] = [
Expand Down Expand Up @@ -282,7 +284,7 @@ export const BannerWithLink = () => {

export const CustomMargin = () => {
return (
<VStack gap={2} marginX={-0.5}>
<VStack gap={2} paddingX={2}>
<Text as="h1" display="block" font="title1">
Global
</Text>
Expand Down