Compare commits

..
2 Commits
Author SHA1 Message Date
elviraandClaude Opus 5.5 34f30cde50 Bump version to 0.31.2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 16:22:30 +02:00
elviraandClaude Opus 5.5 bf016f8db2 Feat: Use themeable trash icon for cart line remove button
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 16:22:30 +02:00
5 changed files with 25 additions and 4 deletions

No files matched your search

+6
View File
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
## [0.31.2] - 2026-11-03
### Changed
- Cart line remove button now uses a trash bin icon instead of `×`. Themes
can swap it via the new `--bbk-icon-remove` custom property, e.g.
`:root { --bbk-icon-remove: url("/images/icons/bin.svg"); }`.
## [0.31.1] - 2026-10-19 ## [0.31.1] - 2026-10-19
### Added ### Added
- `storefront.search.view_all` translation ("View all :count results" / - `storefront.search.view_all` translation ("View all :count results" /
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "boboko/core", "name": "boboko/core",
"description": "Core module — authentication and shared panel behaviour", "description": "Core module — authentication and shared panel behaviour",
"type": "library", "type": "library",
"version": "0.31.1", "version": "0.31.2",
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Modules\\Core\\": "src/" "Modules\\Core\\": "src/"
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@boboko/core", "name": "@boboko/core",
"version": "0.31.1", "version": "0.31.2",
"private": true, "private": true,
"type": "module", "type": "module",
"description": "Portable Stimulus controllers and styles for boboko-core's cart + checkout module. Installed as a real npm dependency (file:../boboko-core in dev, a tagged git install in prod) so a consuming app's `npm install` resolves this package's own dependencies (leaflet, @hotwired/stimulus) transitively, the same way `composer update boboko/*` does for PHP. See CONTRIBUTE.md's \"JS/CSS: a real npm package\" section.", "description": "Portable Stimulus controllers and styles for boboko-core's cart + checkout module. Installed as a real npm dependency (file:../boboko-core in dev, a tagged git install in prod) so a consuming app's `npm install` resolves this package's own dependencies (leaflet, @hotwired/stimulus) transitively, the same way `composer update boboko/*` does for PHP. See CONTRIBUTE.md's \"JS/CSS: a real npm package\" section.",
+16 -1
View File
@@ -58,6 +58,14 @@
--bbk-radius: 8px; --bbk-radius: 8px;
--bbk-radius-sm: 4px; --bbk-radius-sm: 4px;
--bbk-shadow: 0 12px 32px rgba(0, 0, 0, 0.16); --bbk-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
/* Icons are used as CSS masks filled with currentColor, so they follow
the element's colour (hover, theme). Swap one by pointing the variable
at any single-colour SVG — the shape is what counts, not its fill:
:root { --bbk-icon-remove: url("/images/icons/bin.svg"); }
*/
--bbk-icon-remove: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6M10 11v6M14 11v6'/%3E%3C/svg%3E");
} }
.bbk-cart[hidden] { display: none; } .bbk-cart[hidden] { display: none; }
@@ -279,7 +287,6 @@ a.bbk-cart-item-title:hover { text-decoration: underline; }
negative margins so the glyph lines up with the title's first line instead negative margins so the glyph lines up with the title's first line instead
of pushing the row taller. */ of pushing the row taller. */
.bbk-cart-item-remove { .bbk-cart-item-remove {
font-size: 1.75rem;
width: 2.5rem; width: 2.5rem;
height: 2.5rem; height: 2.5rem;
margin: -0.5rem -0.5rem 0 0; margin: -0.5rem -0.5rem 0 0;
@@ -291,6 +298,14 @@ a.bbk-cart-item-title:hover { text-decoration: underline; }
.bbk-cart-item-remove:hover { background: var(--bbk-color-bg-muted); } .bbk-cart-item-remove:hover { background: var(--bbk-color-bg-muted); }
.bbk-cart-item-remove-icon {
width: 1.25rem;
height: 1.25rem;
background-color: currentColor;
-webkit-mask: var(--bbk-icon-remove) center / contain no-repeat;
mask: var(--bbk-icon-remove) center / contain no-repeat;
}
.bbk-cart-qty { .bbk-cart-qty {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@@ -59,7 +59,7 @@
class="bbk-cart-item-remove" class="bbk-cart-item-remove"
aria-label="{{ __('checkout.cart.remove') }}" aria-label="{{ __('checkout.cart.remove') }}"
aria-describedby="bbk-cart-item-title-{{ $line->id }}" aria-describedby="bbk-cart-item-title-{{ $line->id }}"
><span aria-hidden="true">&times;</span></button> >{{-- Icon drawn by CSS (--bbk-icon-remove) so themes can swap it. --}}<span class="bbk-cart-item-remove-icon" aria-hidden="true"></span></button>
</form> </form>
</div> </div>