• hanney bali
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi,
I am not able to make the background dialog box blur. When the 1st dialog box came, the background HTML was blurred. But from that dialog box, I created another dialog box upon clicking a button. That time the previous dialog box is not getting blurred.

I have used <div class="slds-backdrop slds-backdrop--open"></div> . Still it's not working. Below is the screenshot.

User-added image
Below is the code -

<aura:component controller="billingController">
    <aura:attribute name="billId" type="String"/>
    <aura:attribute name="total" type="Decimal"/>
    
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/> 
    <div aura:id="modalDiv1">
        <div role="dialog" class="slds-modal slds-fade-in-open slds-modal_small" >
            <div class="slds-modal__container">
                <div class="slds-modal__header">
                    <button class="slds-button slds-modal__close slds-button--icon-inverse" title="Close" onclick="{!c.handleCloseModal}">
                        X<span class="slds-assistive-text">Close</span>
                    </button>
                    <h1 class="slds-text-heading--medium">Billing Id from billing system is : </h1>
                </div>
                <div class="slds-modal__content slds-p-around--medium">
                    <div class="slds-align_absolute-center">
                        {!v.billId}
                    </div>
                </div>
            </div>
        </div>
     <div class="slds-backdrop slds-backdrop--open"></div>   
    </div>
</aura:component>

Please help. Thank you.

- Payel