material-components-web icon indicating copy to clipboard operation
material-components-web copied to clipboard

Menu: List style type shows on Edge

Open futurliberta opened this issue 8 years ago • 8 comments

Dunno why, but menu are not displaying as expected on Egde :

image

Setting the property list-style-type: none; on the li instead of the ul fixes the problem... (Microsoft <3)

futurliberta avatar Feb 06 '18 17:02 futurliberta

Thanks so much for reporting this!

I recently encountered the same bug in IE 11 💩 while working on the theme demo page.

(I could have sworn it was fixed in Edge, but I could be wrong.)

I left myself a comment in the theme demo markup which points to a post on Stack Overflow. Judging by the responses there - and from my own experimentation - the only workaround for this bug is to add an inline style in the markup: style="list-style: none".

I'll create a PR to mention this pitfall in the mdc-menu README.

Thanks again!

acdvorak avatar Feb 13 '18 01:02 acdvorak

@acdvorak Any news on this problem? We are still encountering this problem with mdc version 0.41 and the latest version of Edge.

kvdheuvel avatar Nov 16 '18 11:11 kvdheuvel

I'm no longer able to reproduce this issue with MDC Menu - tested this on IE 11 and on MS Edge 41 (EdgeHTML 16) on Windows 10.

abhiomkar avatar Nov 16 '18 17:11 abhiomkar

I'm also not able to reproduce this anymore. Tested in IE 11 💩and Edge 16.

@kvdheuvel Are you still seeing this issue with the latest version of mdc-menu (0.41.0)?

acdvorak avatar Nov 16 '18 17:11 acdvorak

@acdvorak It looks like this problem only happens when using an mdc-menu in the mdc-top-app-bar. On any other location it works as expected.

kvdheuvel avatar Nov 20 '18 07:11 kvdheuvel

I tested this on Edge by rendering menu inside top-app-bar, I still couldn't reproduce this issue.

abhiomkar avatar Nov 20 '18 20:11 abhiomkar

@abhiomkar I'll try to pinpoint the problem. When I know more I will let you know with what I've found. Thnx for checking anyway (Y)

kvdheuvel avatar Nov 21 '18 06:11 kvdheuvel

Here is an example on stackblitz that renders menu component inside top app bar for your reference.

abhiomkar avatar Nov 21 '18 19:11 abhiomkar