Skip to content

Commit

Permalink
Sidebar Upsell Nudge: Improve UI (#97278)
Browse files Browse the repository at this point in the history
* Updated the UI according to the design agreed on

* Non-dismissible notices do not have a UI change

* UI changes now only apply to is-dismissible + is-compact

* Minor change in CSS selector
  • Loading branch information
rcrdortiz authored Dec 13, 2024
1 parent 89694f6 commit d916a34
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 9 additions & 2 deletions client/blocks/upsell-nudge/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,17 @@
box-shadow: none;
}
}

.upsell-nudge.is-dismissible.is-compact .banner__content {
flex-direction: column;
}
.upsell-nudge.is-dismissible.is-compact .banner__info {
align-self: flex-start;
}
.upsell-nudge.is-dismissible.is-compact .banner__action {
margin-top: 0;
margin-top: 5px;
margin-right: 28px;
margin-left: 0;
align-self: flex-start;
top: 2px;
}
.upsell-nudge.banner.card.is-compact.is-card-link {
Expand Down
3 changes: 1 addition & 2 deletions client/components/banner/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@
.banner.is-compact .dismissible-card__close-button {
width: 16px;
height: 16px;
top: 50%;
margin-top: -8px;
margin-top: -10px;
}

.is-horizontal .dismissible-card__close-button,
Expand Down

0 comments on commit d916a34

Please sign in to comment.