Skip to content

Commit

Permalink
Banner: Fix margin for inline actions (#5053)
Browse files Browse the repository at this point in the history
* we don't need margin when actions are inline

* Create wet-otters-pull.md

* test(vrt): update snapshots

* there are 2 css files!!

---------

Co-authored-by: siddharthkp <siddharthkp@users.noreply.github.com>
  • Loading branch information
siddharthkp and siddharthkp authored Oct 1, 2024
1 parent cff067a commit 2703d0c
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/wet-otters-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Banner: Fix margin for inline actions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/react/src/Banner/Banner.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
}
}

.Banner[data-dismissible] .BannerActions {
.Banner[data-dismissible]:not([data-title-hidden]) .BannerActions {
margin-block-end: var(--base-size-6);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ const StyledBanner = toggleStyledComponent(
}
}
&[data-dismissible] .BannerActions {
&[data-dismissible]:not([data-title-hidden]) .BannerActions {
margin-block-end: var(--base-size-6, 0.375rem);
}
Expand Down

0 comments on commit 2703d0c

Please sign in to comment.