# Changelog

All notable changes to BW Interlink are documented here.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.1.4] - 2026-06-09

### Changed
- Badge restyled to match Brentwood reference: label and chevron now red (`#c41230`), background `rgba(255,255,255,0.9)` with `box-shadow`, left corners rounded (`border-radius: 4px 0 0 4px`), badge floats `12px` above card bottom edge.
- Chevron updated from Material Design to FA `angle-right` path (`viewBox 0 0 320 512`) — slimmer, matches reference HTML exactly.
- Removed `accentColor` attribute and ColorPicker (not needed; color is part of the fixed badge design).

## [0.1.3] - 2026-06-09

### Added
- `accentColor` attribute (superseded in 0.1.4 — removed).

## [0.1.2] - 2026-06-09

### Fixed
- Overlay was not rendering on top of image. Root cause: separate `.bw-interlink-img-wrap` wrapper made the `position: absolute` overlay escape the image area. Refactored to put `aspect-ratio` directly on the card (`<a>`), image is now `position: absolute; inset: 0` to fill the card, overlay is also `position: absolute; bottom: 0; right: 0` — all contained within the same positioned parent.

## [0.1.1] - 2026-06-09

### Changed
- Label overlay restyled to match reference design: compact white badge at bottom-right corner of image (auto-width, not full-width). Matches the "Arts >" style seen in the Brentwood reference screenshots.

## [0.1.0] - 2026-06-09

### Added
- Initial block: `bw/interlink` — image card with white overlay label + chevron right link.
- Attributes: `imageUrl`, `imageId`, `imageAlt`, `label`, `url`, `newTab`, `subtext`, `ratio`.
- Inline editing for label and subtext directly on the card in the editor.
- Click-to-upload placeholder when no image set.
- Sidebar panels: Image (upload + alt text), Link (URL + new tab), Appearance (aspect ratio).
- Aspect ratio options: Portrait 3:4, Square 1:1, Landscape 4:3, Photo 3:2, Wide 16:9.
- Hover zoom effect on image (frontend only).
- Dynamic render via `render.php` (no JS on frontend).

### Added
- Initial scaffold.
