It’s hard, but I try to bring you a bi-weekly update with great information. Not all are new, but good to know too. So here is the first instalment. [Read more]
Update on how to include 3rd party CSS in SharePoint Framework
Finally, we upgraded SASS to a new version of SASS, which brings tons of changes to your development. It started in SharePoint Framework version 1.15, and the transition is now completed in 1.16.1. While importing 3rd party CSS via ‘@import’ is still possible, this option will be lost at some point.
Let me explain what other options you have to import 3rd party CSS to your web parts or extension CSS.[Read more]
CSS Media Queries in JavaScript
There are many ways to react to layout changes in HTML. You can use Resize Observers, Intersection Observer or Mutation Observers.
[Read more]
SVG background in CSS without base64 encoding – Possible?
While working on a side project, I asked myself the interesting question if it would be possible to use SVG in CSS as a background image.
It is relatively simple if you use the SVG as an external file, but what if the object of the background is simple and I like to use it directly as an SVG is CSS.
In the past, I always base64 encode the source of the SVG image, which is not needed.