You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The focus state boolean can be combined with any of the above states, and the `keyActive` state is only available while in the `focus` state.
302
+
The `focus` state boolean can be combined with any of the above states, and the `keyActive` state is only available while in the `focus` state.
303
303
304
304
### CSS Interactive State Machine
305
305
Note that since a state machine can only be in one state at a time, to view interactive CSS as a state machine it has to be thought of as a combination of pseudo class selectors that match based on the mouse, keyboard and touch states.
@@ -312,7 +312,7 @@ Note that since a state machine can only be in one state at a time, to view inte
312
312
|`hoverActive`| Both hover and active styles applied |`(mouseOn && buttonDown)`||`(mouseOn && focusKeyDown)`||`(touchDown, but not consistent across browsers)`|`.class:hover`, `.class:active`|
313
313
|`active`| Only active styles applied |`(buttonDown && !mouseOn currently, but had mouseOn when buttonDown started)`||`(focusKeyDown && !mouseOn)`||`(touchDown but not on the element currently, but not consistent across browsers)`|`.class:active`|
314
314
315
-
The focus state can be combined with any of the above CSS interactive states to double the total number of states that the CSS interactive state machine can be in.
315
+
The `focus` state can be combined with any of the above CSS interactive states to double the total number of states that the CSS interactive state machine can be in.
316
316
317
317
Note that you could achieve mutually exclusive hover and active states if you apply hover styles with the `.class:hover:not(:active)` selector, and there are other states that you could generate if you wanted to using CSS selectors. You could also create a touch active state by using [Current Input](https://github.com/rafrex/current-input), so CSS has some flexibility, but it comes at the cost of simplicity, and in CSS touch and keyboard interactions are not well supported.
318
318
@@ -343,7 +343,7 @@ Note that you could achieve mutually exclusive hover and active states if you ap
343
343
344
344
## Complex Examples
345
345
346
-
#### Use RI Component State to Render Your Component
346
+
#### Using Interactive's State in Parent Component
0 commit comments