Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit 5dd0c28

Browse files
authored
Deprecate package (#671)
1 parent dff4930 commit 5dd0c28

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

readme.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Deprecation notice
2+
3+
The majority of what this package did is hide the checkbox and provide a way to add your own styled checkbox. However now that IE 11 is deprecated, the css property [all: unset](https://caniuse.com/css-all) works across enough browsers that it doesn't make sense to maintain this project.
4+
5+
If you want to create your own custom checkbox, there are tons of tutorials that show you how to use `:before` to create your own styled checkbox, however the new update is to just unset all the fields for the input itself that way it doesn't show up.
6+
7+
```css
8+
input[type=checkbox] {
9+
all: unset;
10+
}
11+
```
12+
113
# An unstyled React checkbox
214

315
[![npm (scoped)](https://img.shields.io/npm/v/@snowcoders/react-checkbox.svg)](https://www.npmjs.com/package/@snowcoders/react-checkbox)

0 commit comments

Comments
 (0)