@@ -5,6 +5,40 @@ All notable changes to `laravel-cookie-guard` will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
6
6
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
7
7
8
+ ## v4.1.0 - Improved Accessibility & Bug Fixes - 2025-04-03
9
+
10
+ We have decided to give the developers the ability to use the pure ` <dialog> ` HTML element functionality for our cookie
11
+ consent component to enhance accessibility and ensure compliance with privacy regulations.
12
+
13
+ The ` <dialog> ` element is designed to create a modal dialog that captures the user's focus, preventing interaction with
14
+ the rest of the webpage
15
+ until the dialog is dismissed.
16
+ This approach ensures that users must make a choice regarding cookie consent before they
17
+ can continue using the website.
18
+
19
+ By using the ` <dialog> ` element, we achieve the following benefits:
20
+
21
+ 1 . ** Improved Accessibility:** The ` <dialog> ` element is natively supported by modern browsers and provides built-in
22
+ accessibility features. It ensures that screen readers and other assistive technologies can properly announce the
23
+ dialog and its contents to users with disabilities.
24
+
25
+
26
+ 2 . ** Focus Management:** When the dialog is open, it automatically captures the focus, preventing users from navigating
27
+ outside of it. This ensures that users cannot interact with other parts of the website until they have accepted or
28
+ rejected the cookies, making the consent process clear and unavoidable.
29
+
30
+
31
+ 3 . ** Compliance with Privacy Regulations:** By requiring users to make a choice before continuing to use the website, we
32
+ ensure compliance with privacy regulations such as the GDPR. This approach guarantees that users are informed about
33
+ and consent to the use of cookies before any data is collected.
34
+
35
+ Overall, the use of the ` <dialog> ` element enhances the user experience by providing a clear and accessible way to
36
+ manage cookie consent, ensuring that all users can interact with our website in a compliant and user-friendly manner.
37
+
38
+ This functionality is now the ** default behavior of the plugin** , and it can be disabled by setting the new
39
+ ` use_floating_modal `
40
+ flag in the ` config/cookies_consent.php ` file to ` true ` .
41
+
8
42
## v4.0.0 - Multilingual Support & Better Theming - Breaking Changes in Configuration and Functionality - 2025-03-07
9
43
10
44
The plugin is now renamed to ` laravel-cookie-guard ` and has undergone some major updates! 🎉🥳😍
@@ -22,19 +56,22 @@ composer require scify/laravel-cookie-guard
22
56
php artisan vendor:publish --provider=" SciFY\LaravelCookiesConsent\LaravelCookiesConsentServiceProvider" --tag=" cookies-consent-public" --force
23
57
```
24
58
25
- Then, make sure to check the configuration file ` config/cookies_consent.php ` and update it according to [ the new one] ( config/cookies_consent.php ) .
59
+ Then, make sure to check the configuration file ` config/cookies_consent.php ` and update it according
60
+ to [ the new one] ( config/cookies_consent.php ) .
26
61
27
62
Then, make sure that the Laravel components you use are the new ones:
28
63
29
64
Intead of using:
30
65
31
66
``` html
67
+
32
68
<x-laravel-cookies-consent ></x-laravel-cookies-consent >
33
69
```
34
70
35
71
Use:
36
72
37
73
``` html
74
+
38
75
<x-laravel-cookie-guard-scripts ></x-laravel-cookie-guard-scripts >
39
76
<x-laravel-cookie-guard ></x-laravel-cookie-guard >
40
77
```
@@ -77,13 +114,13 @@ If you want to override the CSS styles of the cookies consent dialog, you can do
77
114
78
115
<x-laravel-cookie-guard ></x-laravel-cookie-guard >
79
116
<style >
80
- #scify-cookies-consent {
81
- --scify-cookies-primary-color : #ff5722 ; /* Override primary color */
117
+ #scify-cookies-consent {
118
+ --scify-cookies-primary-color : #ff5722 ; /* Override primary color */
82
119
83
- ...
120
+ ...
84
121
85
- /* Add more override rules here */
86
- }
122
+ /* Add more override rules here */
123
+ }
87
124
</style >
88
125
```
89
126
0 commit comments