Skip to content

Commit 298aa3a

Browse files
authored
Merge pull request #136 from GeekyAnts/fix/precedence-table
precedence table created
2 parents fe9cbb0 + 1f85aef commit 298aa3a

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

docs/pseudoProps.md

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,26 +41,22 @@ The above thing translates to a Text(not Button) when hovered changes its color
4141

4242
Now all the pseudo props follow a specific order that defines which pseudo prop can override the other pseudo prop. You can find the precedence values associated with each pseudo prop. Higher number means higher precedence.
4343

44-
```jsx
45-
_disabled(100);
46-
47-
_pressed(70);
48-
_hover(60);
49-
_focus(50);
50-
_focusVisible(55);
51-
52-
_active(30);
53-
_checked(30);
54-
_readOnly(40);
55-
_invalid(40);
56-
57-
_web(10);
58-
_android(10);
59-
_ios(10);
60-
61-
_light(10);
62-
_dark(10);
63-
```
44+
| Pseudo Props | Precedence Value |
45+
| -------------- | ---------------- |
46+
| \_disabled | 100 |
47+
| \_pressed | 70 |
48+
| \_hover | 60 |
49+
| \_focus | 50 |
50+
| \_focusVisible | 55 |
51+
| \_active | 30 |
52+
| \_checked | 30 |
53+
| \_readOnly | 40 |
54+
| \_invalid | 40 |
55+
| \_web | 10 |
56+
| \_android | 10 |
57+
| \_ios | 10 |
58+
| \_light | 10 |
59+
| \_dark | 10 |
6460

6561
```SnackPlayer name=Pseudo%20Props%20Precedence
6662
import React from 'react';

0 commit comments

Comments
 (0)