Problem/Motivation
The Box Shadow style plugin was updated to support multi-select (checkboxes) so multiple
shadow classes can be applied at the same time. However, the automatically injected
“N/A” option (_none) causes incorrect behavior when used with checkboxes.
“N/A” can be selected together with other shadow options, even though its purpose is
to represent no shadow at all.
Steps to reproduce
- Enable the Box Shadow style plugin.
- Open Layout Builder and edit a section or block.
- Select multiple Box Shadow options.
- Select the “N/A” option.
- Observe that “N/A” remains selected alongside other shadow options.
Proposed resolution
Update the Box Shadow style plugin so the “N/A” option behaves as a reset:
- Selecting “N/A” unselects all other shadow options.
- Selecting any shadow option unselects “N/A”.
- “N/A” is never stored or applied as a CSS class.
Remaining tasks
- Review and agree on expected behavior for “N/A” in multi-select shadow styles.
- Add or update tests if required.
User interface changes
Improves the Box Shadow selection UI by preventing invalid combinations and making
“N/A” behave consistently as a reset option.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | Issue-3566311-1.patch | 7.16 KB | ibrahim tameme |
Issue fork bootstrap_styles-3566311
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
ibrahim tameme commentedComment #4
ibrahim tameme commentedComment #6
ibrahim tameme commentedComment #7
rajab natshah