Changes between Initial Version and Version 1 of Ticket #33704, comment 8
- Timestamp:
- 08/31/2016 06:40:28 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33704, comment 8
initial v1 1 [attachment:33704-focus.diff] handles autofocus-related usage of `wp_is_mobile()`. Turns out WordPress already has a mechanism for setting focus: you just add a class `wp-initial-focus` to an element. This was not used anyw ere. So I just tweaked that to only fire when `wpResponsive` is not active. Plus, on install.php, where common.js is not available, tested against the viewport width instead.1 [attachment:33704-focus.diff] handles autofocus-related usage of `wp_is_mobile()`. Turns out WordPress already has a mechanism for setting focus: you just add a class `wp-initial-focus` to an element. This was not used anywhere. So I just tweaked that to only fire when `wpResponsive` is not active. Plus, on install.php, where common.js is not available, tested against the viewport width instead.