Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider Thumb not showing in Microsoft Edge on Windows 10 #1625

Open
sathomas opened this issue Sep 22, 2015 · 7 comments
Open

Slider Thumb not showing in Microsoft Edge on Windows 10 #1625

sathomas opened this issue Sep 22, 2015 · 7 comments

Comments

@sathomas
Copy link

Screen shot taken from modern.ie VM Build number:20150801 running on Parallels Desktop 11.0.1

screen shot 2015-09-22 at 2 05 50 pm

@sgomes
Copy link
Contributor

sgomes commented Sep 23, 2015

Thanks, @sathomas, I'll take a look at this.

@danielktaylor
Copy link

As a workaround I removed the MDL styling from the sliders on Edge:

$(function() {
    var user_agent = navigator.userAgent;
    var edge = /(edge)\/((\d+)?[\w\.]+)/i;
    if (edge.test(user_agent)) {
        $("input.mdl-slider.mdl-js-slider").removeClass("mdl-slider mdl-js-slider");
    }
});

Still looks okay, and is a lot more usable until this bug is fixed.

@sgomes
Copy link
Contributor

sgomes commented Feb 8, 2016

It looks like Edge handles the native styling of sliders differently from IE.

We'll be reimplementing sliders without using native styling in v2, but for now we should add a browser hack to solve this issue in Edge.

@DanTup
Copy link
Contributor

DanTup commented Mar 17, 2017

What's the status of this? I just noticed this looks bad in Edge on my site so I checked the getmdl page and it's exactly the same. This is almost unusable on Edge, the hit target is tiny.

MDL Edge

@mbaileys
Copy link

The Edge solution is to specify the height of the input["range"] element. Since it doesn't depend on the thumb height, the thumb gets clipped.

.mdl-slider {
min-height: 20px;
}

@skosch
Copy link

skosch commented Mar 8, 2018

Thanks @mbaileys, that helped. I found that I also needed

.mdl-slider::-ms-thumb {
  /* ... extra stuff, height, width etc. */
  transform: scale(1) !important;
}

@nlotz63
Copy link

nlotz63 commented Jun 1, 2018

Thanks @mbaileys and @skosch. This was a big help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants