"Temporarily Dismissible" should not include a cookie confirmation

Created on 11 December 2024, 4 months ago

Problem/Motivation

I'm finding that even when I set my block to "Block is temporarily dismissable" it still triggers the to popup.

DismissableBlockHelperService.php seems to apply "dismissableblocks-remember" to all dismissable blocks. And there is an "if type == cookie" commented out, presumably from a previous iteration that distinguished between both options.

Steps to reproduce

- Make a block dismissable
- Set the type to "Block is temporarily dismissable"
- Try to dismiss the block
- The dialog still appears

Proposed resolution

- Modify src/Service/DismissableBlockHelperService.php to apply a dismissableblocks-remember class to temporarily dismissable blocks.
- Make a js/dismissable_temporary.js which targets the dismissableblocks-temporary class
- Change js/dismissable_and_remember.js to target only the dismissableblocks-remember class

Remaining tasks

- Make an MR
- Review
- Merge

User interface changes

No more dialog box on temporarily dismissable blocks

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom jacobupal Leeds

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024