Skip to content

Commit 4a842ea

Browse files
committed
Release v2.1.1: CSP-safe password toggle icon visibility.
1 parent 06e2231 commit 4a842ea

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

docs/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## Table of contents
99

1010
- [[Unreleased]](#unreleased)
11+
- [[2.1.1] - 2026-08-12](#211---2026-08-12)
1112
- [[2.1.0] - 2026-08-04](#210---2026-08-04)
1213
- [[2.0.5] - 2026-07-29](#205---2026-07-29)
1314
- [[2.0.4] - 2026-07-16](#204---2026-07-16)
@@ -32,10 +33,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3233

3334
## [Unreleased]
3435

36+
## [2.1.1] - 2026-08-12
37+
3538
### Fixed
3639

3740
- **CSP-safe icon visibility:** hide/show eye icons via `is-password-visible` + `toggle_password.css` instead of inline `style="display: none"` / `element.style.display`. When `style-src` includes a nonce, browsers ignore `'unsafe-inline'`, so both icons were visible under strict CSP (e.g. Beacon). Demos aligned to the same class toggle (no Bootstrap `d-none`).
3841

42+
[2.1.1]: https://github.com/nowo-tech/PasswordToggleBundle/releases/tag/v2.1.1
43+
3944
## [2.1.0] - 2026-08-04
4045

4146
### Added

docs/UPGRADING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This document describes how to upgrade between major versions of Password Toggle Bundle.
44

5-
## Unreleased (CSP-safe icon visibility)
5+
## 2.1.1 (CSP-safe icon visibility)
66

77
- **Load the bundle CSS** (`asset('css/toggle_password.css', 'nowo_password_toggle')` or import the SCSS). Icon show/hide now depends on `.icon-visible` / `.is-password-visible` rules in that stylesheet.
88
- **Custom form theme overrides:** if you copied `toggle_password_widget.html.twig`, stop using inline `style.display` / `style: 'display: none'` / Bootstrap `d-none`. Toggle `is-password-visible` on the button (see the bundle widget) and keep both icons in the markup without inline hide styles.

0 commit comments

Comments
 (0)