Problem/Motivation

Allow users to use a conjunction of the background color field + a NEW opacity field (attached to the background media field) to achieve what looks like an "overlay effect".

blb overlay 1

blb overlay 2

Steps to reproduce

n/a

Proposed resolution

Remaining tasks

  1. Create a range slider component to output a percentage based value to use for our opacity value.

User interface changes

TBD.

API changes

n/a

Data model changes

n/a

Command icon 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

AaronChristian created an issue. See original summary.

mahmoud-zayed’s picture

Status: Active » Needs work
mahmoud-zayed’s picture

Title: Plugin: Background Opacity » Plugin: Background Overlay
ldavidsp’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new25.05 KB

I have created a patch to activate overlay to the images and videos.

ldavidsp’s picture

Status: Reviewed & tested by the community » Needs review
ldavidsp’s picture

StatusFileSize
new10.94 KB
ldavidsp’s picture

StatusFileSize
new12.92 KB
ldavidsp’s picture

StatusFileSize
new12.89 KB
aaronchristian’s picture

Thanks @davidparedes21!

Great work! I will test this bad boy out tomorrow!

nwom’s picture

Very cool. Can't wait to see this get committed.

nwom’s picture

Status: Needs review » Needs work

It looks like it needs a re-roll. It no longer applies to newest dev.

aaronchristian’s picture

Hi @davidparedes21, are you able to reroll this patch when you have some time?

ldavidsp’s picture

Hi @AaronChristian, Ok, let's create it again.

drupgirl’s picture

Hi, yes, this is definitely a good idea. What's the status on this re-roll/merge request?

I see there's also issue https://www.drupal.org/project/bootstrap_styles/issues/3213112, which looks related.

My solution was to apply a background color class and have the background image added as part of the class, with the overlay. Defeats the purpose, but it works.