Button hover in Chrome causing problems with Leaflet map

Since yesterday, I have been experiencing issues with the buttons on my page.

chrome : Version 61.0.3163.100 (Build officiel) (64 bits)

I do not encounter any problems with Firefox.

The problem arises when I select text on my overlay; the overlay becomes transparent and reveals the map behind it, resulting in dirty pixels and gray squares appearing over the div as well.

If you would like to test it live, visit (you can enter dummy registration, it's local).

I am using Leaflet and a div overlay:

https://i.sstatic.net/5bO7B.png https://i.sstatic.net/mpsP1.png

Code:

<div class="cdk-overlay-container">
    <div class="cdk-global-overlay-wrapper" style="justify-content: center; align-items: center;">
        <div class="cdk-overlay-backdrop cdk-overlay-dark-backdrop cdk-overlay-backdrop-showing"/>
        <div id="cdk-overlay-30" class="cdk-overlay-pane" dir="ltr" style="position: static; pointer-events: auto; width: 350px;">
            <div tabindex="0" class="cdk-visually-hidden cdk-focus-trap-anchor"/>
            <md-dialog-container class="mat-dialog-container ng-tns-c6-30 ng-trigger ng-trigger-slideDialog" tabindex="-1" role="dialog" aria-labelledby="md-dialog-title-7" style="transform: none; opacity: 1;">
                <!---->
                <app-dialog-choose-layers>
                    <h2 class="mat-dialog-title" md-dialog-title="" id="md-dialog-title-7">Opacity of Maps</h2>
                    <div class="mat-dialog-content" md-dialog-content="" style="
   -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
">
                        <table width="100%">
                            <tbody>
                                <!---->
                                <tr class="">
                                    <td>ign plan</td>
                                    <td>
                                       ...
                                    </td>
                                </tr>
                                <tr class="">
                                     ...
                                    </td>
                                </tr>
                                <tr class="">
                                     ...
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="mat-dialog-actions" md-dialog-actions="">
                        <button class="mat-button" md-button="" tabindex="-1">
                            <span class="mat-button-wrapper">Ok</span>
                            <div class="mat-button-ripple mat-ripple" md-ripple=""/>
                            <div class="mat-button-focus-overlay"/>
                        </button>
                    </div>
                </app-dialog-choose-layers>
            </md-dialog-container>
            <div tabindex="0" class="cdk-visually-hidden cdk-focus-trap-anchor"/>
        </div>
    </div>
</div>

Answer №1

The issue stemmed from a CSS problem that arose when I attempted to enhance the appearance of dialog windows on my Angular.io material by adding a custom CSS code that included a logo image. Unfortunately, this caused a disruption in the appearance of the app on Chrome.

.mat-dialog-container {
  background-image: url("../assets/pluto-est-sur-une-piste.png");
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 120px;
}

The problem was resolved after removing the custom CSS code.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the best way to insert a space between the radio buttons in a RadioButtonList and the accompanying text?

After researching various solutions, none have seemed to work for me. In my ASPX page, I am utilizing Bootstrap to showcase a RadioButtonList with options for "Yes" and "No" like this: <div class="form-group my-3"> <label class=" ...

activating hover states is prevented when using overflow:scroll

Visit the codepen page I am attempting to set a max-height or height to a long list and make the rest scroll. I achieved this by using: height:800px; overflow:scroll; The issue I'm facing is that the "#subcategory" items stop displaying on hover ...

Select dropdown in AngularJS for Date formatting

After retrieving json data from a web API, I found that it contains a series of datetimes. My goal is to select a specific datetime from a dropdown list. While I can populate the list without any issues, the formatting appears to be incorrect and I'm ...

Incorporate JavaScript to include a new class and attribute

Apologies for any language barriers.. I grasp that it involves using addClass and removeClass, but I am uncertain about how to write the terms. I need to ensure that if the screen resolution is less than 768 pixels, then the attributes id="dLabel" type="b ...

What is the process for submitting a record to a table following the activation of a JavaScript link or button

I am working on creating a like-unlike button below each post for registered users to interact with. I have successfully created the button itself, but now I need to figure out how to store records when a user clicks the button. My idea is to utilize a tab ...

Tri-party class switch-up

I successfully implemented two radio buttons to toggle between alternative texts: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> ...

Different strategies for displaying a singular pie chart on multiple pages

I have implemented a pie chart on an HTML page and now I want to display this chart on multiple other HTML pages. Below is the JavaScript code for creating the pie chart: function piechart() { var chart; var legend; ...

Executing Javascript without invoking the default behavior

Recently, I've been delving into the world of JavaScript and experimenting with the prevent default command for ajax pagination. Here's the code I've come up with: http://jsfiddle.net/6pqfH/2/ $('.pagination').click(function(e){ ...

Selenium is unable to interact with iframes

I'm attempting to extract the Job Description and Job Requirements from this specific link using selenium. Check out my code below: driver = webdriver.Firefox() url = "https://www.jobsbank.gov.sg/ICMSPortal/portlets/JobBankHandler/SearchDetail.do?id= ...

Is there a way to dim and deactivate a button after it has been clicked once?

Hello, I am attempting to disable and grey out a button after it has been clicked once in order to prevent the user from clicking it again until they refresh the page. I hope my question is clear enough and that you can understand me. Below is the HTML cod ...

CSS is broken when transitioning from the development to the live site

After configuring the CSS for this site using CodeIgnitor, I placed it in the specified location: {link rel="stylesheet" type="text/css" href="<? echo base_url();?>application/assets/css/public.css" /> Although Firebug confirms that the link is ...

Dynamic div with height controlled by the content of the background image

I'm trying to figure out how to make a div with a background image of 100% width always maintain the aspect ratio of the image for its height. Is there a way to achieve this? In simpler terms, when I resize the page, I want the div to scale down whil ...

The reduced motion media query prevented me from using a Bootstrap modal with animations

I'm currently working with Bootstrap 4 modals and I've encountered an issue where the fade animation and slide animation are not being displayed. After doing some research, I discovered that the problem lies within the transitions.scss file which ...

The conflict name has an impact on both the folder and the PHP file

Within my web directory, there exists a folder titled area-nursing that houses various PHP files along with a specific file named area_nursing.php. However, upon attempting to rewrite area_nursing.php as area-nursing using the .htaccess file, I encounter ...

What strategies can flex-shrink use to triumph over padding in the battle for space

I am facing an issue with a flex-box tag cloud where the sizing is controlled from the outside. I need the tags inside to be collapsible all the way down to zero if necessary, but currently they only collapse up to 2 times their padding. https://i.sstatic ...

Position a div in the center of a section

Having trouble centering a <div> within a <section>? I've tried setting margin-left and margin-right to auto without success. Any other suggestions? Check out the jsFiddle illustrating the issue: http://jsfiddle.net/veWKh/ ...

Issue with ASP.NET Base64 image source rendering incorrectly

After retrieving a Base64 string from Azure active directory using a Lambda function, which represents a user's profile picture, I am facing issues displaying it on an ASP.NET page. Below is the code snippet in ASP.NET (The referenced HTML object is ...

Tips on how to connect with ngFor

I have been working on an application to display various events, but I am encountering an issue. Whenever I load the webpage, it appears empty and the console throws an error saying 'Can't bind to 'ngForEvent' since it isn't a know ...

Creating a stunning visual effect by using CSS to fade images in and out

My current issue involves a UX switch that controls the effect on and off of pictures. http://plnkr.co/edit/JcPXpP0jE5GysBbZbrkp I am trying to achieve a smooth fade transition from one picture to another over 1 second, but I am encountering difficulties ...

"Dynamic navigation bar that remains in place even while scrolling past Adsense advertisements

Looking to implement a sticky menu for my blog using jQuery. The menu is functioning as desired, however, the issue arises when I scroll down on a page that contains adsense - the menu ends up going under the ad. What could be causing this problem? Below ...