← All changes
|
modules/atomic-widgets/styles/style-states.php
+12
-0
4.2.0-beta2
→
4.3.1
View file →
| @@ -10,8 +10,10 @@ | ||
| 10 | 10 | const CHECKED = 'checked'; |
| 11 | 11 | |
| 12 | 12 | const SELECTED = 'e--selected'; |
| 13 | 13 | const DISABLED = 'e--disabled'; |
| 14 | + const PLAYING = 'e--playing'; | |
| 15 | + const PAUSED = 'e--paused'; | |
| 14 | 16 | |
| 15 | 17 | private static function get_pseudo_states(): array { |
| 16 | 18 | return [ |
| 17 | 19 | self::HOVER, |
| @@ -25,8 +27,10 @@ | ||
| 25 | 27 | private static function get_class_states(): array { |
| 26 | 28 | return [ |
| 27 | 29 | self::SELECTED, |
| 28 | 30 | self::DISABLED, |
| 31 | + self::PLAYING, | |
| 32 | + self::PAUSED, | |
| 29 | 33 | ]; |
| 30 | 34 | } |
| 31 | 35 | |
| 32 | 36 | private static function get_additional_states_map(): array { |
| @@ -97,8 +101,16 @@ | ||
| 97 | 101 | ], |
| 98 | 102 | 'disabled' => [ |
| 99 | 103 | 'name' => 'disabled', |
| 100 | 104 | 'value' => self::DISABLED, |
| 105 | + ], | |
| 106 | + 'playing' => [ | |
| 107 | + 'name' => 'playing', | |
| 108 | + 'value' => self::PLAYING, | |
| 109 | + ], | |
| 110 | + 'paused' => [ | |
| 111 | + 'name' => 'paused', | |
| 112 | + 'value' => self::PAUSED, | |
| 101 | 113 | ], |
| 102 | 114 | ]; |
| 103 | 115 | } |
| 104 | 116 | |