-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add top border on cart notification when "show separator line" setting is deactivated #306
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with the separator enabled disabled and it looks good in both cases.
.header-wrapper:not(.header-wrapper--border-bottom) | ||
+ cart-notification | ||
.cart-notification { | ||
border-top-width: 0.1rem; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.header-wrapper:not(.header-wrapper--border-bottom) | |
+ cart-notification | |
.cart-notification { | |
border-top-width: 0.1rem; | |
} | |
.header-wrapper:not(.header-wrapper--border-bottom) + cart-notification .cart-notification { | |
border-top-width: 0.1rem; | |
} |
I find this easier to read, but I'm not strongly opinionated on the matter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same. For a second I thought this was using some kind of nesting haha.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the changes. It was Prettier VS code plugin who does the autoformatting so I disabled it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐕 ✅
4272f86
c041d81
to
4272f86
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 👍
…g is deactivated (Shopify#306) * Add border on cart notification when header border setting is not active * adjust presentation of the selector
* main: (23 commits) Cart content update (Shopify#370) Footer spacing and alignment adjustments (Shopify#369) Product Template UI polish updates (Shopify#219) footer ui updates (Shopify#318) Fix cart improvements empty state (Shopify#319) [Announcement] Adjust block id for displaying dynamic names (Shopify#327) Update translations: buyer (Shopify#329) Revert editor setting changes (Shopify#328) Update translations (Shopify#294) Fix collection filtering UX (Shopify#268) Added page width setting and fixed image quality (Shopify#292) Add top border on cart notification when "show separator line" setting is deactivated (Shopify#306) movebadge code into base.css (Shopify#313) Collage UI bug fixes (Shopify#308) Customer account UI polish (Shopify#177) Added custom liquid block to product page (Shopify#269) Fix disclosure icon (Shopify#310) Fix facet price filter label spacing (Shopify#300) Fix duplicate search icon when header logo is set to "Top center" (Shopify#252) Add card outline setting (Shopify#239) ...
…g is deactivated (Shopify#306) * Add border on cart notification when header border setting is not active * adjust presentation of the selector
Why are these changes introduced?
Fixes #278
The goal of this PR is to add a border top on the cart notification even when the header
Show separator line
setting is deactivated.Show separator line - Deactivated
Show separator line - Activated
What approach did you take?
.header-wrapper--border-bottom
class exist.Other considerations
{% render cart-notification %}
snippet, but I thought it would be better to leverage native CSS, even though the selector looks more complicated.Demo links
Checklist