CSS unset
- Planted:
To reset a CSS property to its default value, you can use the unset
value:
That saves a couple lines from the alternative:
I find myself doing the latter pretty often, so this should save a couple lines many times over.
Credit Radix UI docs for the find. unset
is widely supported by modern browsers: caniuse.com/?search=unset