google / google/material-design-lite

Toggles does not work out of the box with ASP.NET

Open
#5,129 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
32.2k
Forks
4.9k
PR merge metrics
No merged PRs in 30d

Description

The story:

I tried to add a toggle control to an ASPX web page like

```


Kartenträger mitliefern

```
The massive hardcore pain in ASP.net is that it wraps HTML elements around ASP.net controls developers do not want...
So
```

```
renders to
```


```

I worked around with remove ```CssClass``` property from aspx code and add it at client runtime with JavaScript:
```HTML


Kartenträger mitliefern

```

```Javascript
$(function () {
$("#chkCardDelivery").addClass("mdl-switch__input");
});
```

Which works good, but I thought maybe you are willing to integrate a better ASP.NET support where the renderer support the first HTML skeleton variant. If not maybe this issue helps antoher ASP developer 😺

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.