Blazorise icon indicating copy to clipboard operation
Blazorise copied to clipboard

Remove inline styles from Blazorise

Open damienbod opened this issue 3 years ago • 3 comments

Thanks for this great project!

Would it be possible to remove all inline styles from any components. It would be good to support this so that a stronger CSP can be defined for Blazor production deployments.

The header in the DataGrid uses the style attribute. Could this be replaced by a class definition?

<th scope="col" style="cursor: pointer">Subject</th>

Greetings Damien

damienbod avatar Dec 19 '21 18:12 damienbod

Yeah, I think it could be done. Inline-styles are used rarely in Blazorise. Mostly in places where it needs to match CSS providers (eg, Bootstrap, or Bulma). Although they cannot be removed completely we will try to remove them where we can.

stsrki avatar Dec 19 '21 19:12 stsrki

Is this still being looked into?

Welchen avatar Jun 08 '22 12:06 Welchen

It is, but it is going into the next milestone.

stsrki avatar Jun 08 '22 12:06 stsrki

@stsrki Thanks

damienbod avatar Jan 02 '23 19:01 damienbod