Commit aba005b
committed
Accessibility: Make sortable meta boxes non sortable when there are no locations they can be dragged to.
Depending on the amount of meta boxes and the layout settings under Screen Options, sortable meta boxes may not be actually sortable.
In these cases, jQuery UI sortable needs to be disabled and the user interface shouldn't use a CSS `cursor: move`.
The use of consistent and relevant cursors may be important for users who have a cognitive disability, since cursors give a visual clue as to an element's functionality. Using the move cursor for elements which cannot be moved may be confusing or counter-intuitive for users.
Props adamsilverstein, antpb, anevins.
Fixes #47131.
git-svn-id: https://develop.svn.wordpress.org/trunk@46250 602fd350-edb4-49c9-b593-d223f7449a821 parent 27a5302 commit aba005b
2 files changed
Lines changed: 37 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1274 | 1274 | | |
1275 | 1275 | | |
1276 | 1276 | | |
| 1277 | + | |
| 1278 | + | |
1277 | 1279 | | |
1278 | 1280 | | |
1279 | 1281 | | |
| |||
1313 | 1315 | | |
1314 | 1316 | | |
1315 | 1317 | | |
1316 | | - | |
1317 | | - | |
| 1318 | + | |
| 1319 | + | |
1318 | 1320 | | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
1323 | 1343 | | |
1324 | 1344 | | |
1325 | 1345 | | |
| |||
1356 | 1376 | | |
1357 | 1377 | | |
1358 | 1378 | | |
1359 | | - | |
| 1379 | + | |
| 1380 | + | |
1360 | 1381 | | |
1361 | 1382 | | |
1362 | 1383 | | |
| |||
1391 | 1412 | | |
1392 | 1413 | | |
1393 | 1414 | | |
| 1415 | + | |
| 1416 | + | |
1394 | 1417 | | |
1395 | 1418 | | |
1396 | 1419 | | |
| |||
1439 | 1462 | | |
1440 | 1463 | | |
1441 | 1464 | | |
| 1465 | + | |
1442 | 1466 | | |
1443 | 1467 | | |
1444 | 1468 | | |
| |||
1454 | 1478 | | |
1455 | 1479 | | |
1456 | 1480 | | |
| 1481 | + | |
1457 | 1482 | | |
1458 | 1483 | | |
1459 | 1484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2041 | 2041 | | |
2042 | 2042 | | |
2043 | 2043 | | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
2044 | 2049 | | |
2045 | 2050 | | |
2046 | 2051 | | |
| |||
0 commit comments