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
5 changes: 5 additions & 0 deletions .changeset/product-badge-inside.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dskripchenko/ui': patch
---

`UidProductSwitcher`: a product's count keeps to its own segment (its right edge on the segment's) instead of covering the next product when it is two or three digits wide.
11 changes: 11 additions & 0 deletions src/patterns/ProductSwitcher/UidProductSwitcher.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,14 @@
padding: 0 4px;
font-size: 10px;
}

/*
* The segments stand side by side: a count centred on the corner (as on the
* bell) would cover the next product. Here it keeps to its own segment — its
* right edge on the segment's, «12» and «99+» growing over its own icon.
*/
.uid-product-switcher__badge.uid-notification-badge--top-right .uid-notification-badge__count,
.uid-product-switcher__badge.uid-notification-badge--top-right .uid-notification-badge__dot {
right: 0;
transform: translateY(-40%);
}
Loading