Commit graph

1955 commits

Author SHA1 Message Date
Nolan Lawson 07facea505
fix: improve autosuggest a11y (#1630)
* fix: improve autosuggest a11y

some progress on #1629

- works in Chrome on NVDA now
- works in Chrome on VoiceOver now
- shorter aria-labels, don't repeat information like "1 of 3", because
it causes the screen reader to speak too frequently, e.g. when the
selected result hasn't changed but the number of results has. Also both
NVDA and VoiceOver already speak this information
- stop doing a fancy fade animation, just show and hide the input
instantly. I worry it confuses screen readers to have the aria-hidden
attribute in there at all
- stop using a single id to identify the active descendant - give
immutable IDs and then update the aria-activedescendant instead. I think
this is what fixed Chrome.

* fix test
2019-11-09 20:38:29 -05:00
Nolan Lawson c5a005186c
fix: fix more html entities in card titles (#1628) 2019-11-09 17:25:39 -05:00
Nolan Lawson ea382acf1d
test: improve testcafe test flakiness, use config file (#1627) 2019-11-09 17:25:33 -05:00
Nolan Lawson edc014cf8c
fix: more consistent toggle button aria-label/title (#1626)
* fix: more consistent toggle button aria-label/title

fixes #1624

* fixup

* fix test
2019-11-09 17:25:26 -05:00
Marcin Cieślak f8356c2eaf chore(package): update node-sass to 4.13.0 (#1625)
This makes deployments based on Node 13 easier.
2019-11-09 09:23:13 -05:00
greenkeeper[bot] 92634dc3ed chore: Update form-data to the latest version 🚀 (#1623)
* fix(package): update form-data to version 3.0.0

* chore(package): update lockfile yarn.lock
2019-11-08 21:36:50 -05:00
Nolan Lawson af1bb984c9 1.15.4 2019-11-01 17:46:54 -07:00
Nolan Lawson da42c8b4c1
fix: fix circle in svg (#1621)
fixes #1616
2019-10-31 23:01:44 -07:00
Nolan Lawson 4ecb04588c
fix: fix custom emoji in polls (#1619)
fixes #1617
2019-10-31 23:01:35 -07:00
Nolan Lawson ee492c1765
fix: change "add instance" to "log in" when not logged in (#1614) 2019-10-31 06:45:36 -07:00
Nolan Lawson 08cd8f645f
chore(package): update to svgo 1.3.2 (#1613)
* chore(package): update svgo to version 1.3.2

* chore(package): update lockfile yarn.lock
2019-10-30 07:50:05 -07:00
Nolan Lawson b8d9c29bac
perf: move async modules to individual files (#1611) 2019-10-29 18:58:49 -07:00
Nolan Lawson 4bc8036dd9
chore: update arrow-key-navigation (#1609) 2019-10-29 18:58:41 -07:00
Nolan Lawson bb85bcb32b
fix: switch to arrow-key-navigation library (#1607)
For left/right arrow key navigation, switch to a small library I made to
handle this. Also make it load asynchronously, because why not.
2019-10-28 08:16:51 -07:00
Nolan Lawson e569c757d1
fix: fix kaios left-right navigation on inputs (#1606) 2019-10-27 11:12:02 -07:00
Nolan Lawson cf2a6022dd
fix: fix regenerator error in legacy mode (#1605) 2019-10-27 11:11:57 -07:00
Cătălin Mariș f17386c8cb perf: Further optimize used SVGs (#1603) 2019-10-27 10:08:03 -07:00
Nolan Lawson 1b40631049 1.15.3 2019-10-24 21:58:40 -07:00
Nolan Lawson 9f12d1ca07
fix: use small modules for userAgent.js instead of terser magic (#1602) 2019-10-24 20:37:23 -07:00
Nolan Lawson 7c04b86405
fix: use smooth scroll polyfill in Chrome for scroll-to-top (#1601)
* fix: use smooth scroll polyfill in Chrome for scroll-to-top

* rename thunk to __thunk__ for safety
2019-10-24 19:03:10 -07:00
Nolan Lawson 0194a07823
perf: use raw html for some external links (#1600) 2019-10-24 19:03:03 -07:00
Vincent 852a8582fb fix: Add the non-truncated text in the title attribute (#1598)
The `.card-title` element carries `text-overflow: ellipsis`, (and
`white-space: nowrap`), resulting in the last part of long article
titles not being visible. By adding it to the `title` attribute,
one can see the full title on hovering without having to visit the
article first.

The main concern I had was that the text is now technically
duplicated in the source code, and for short titles, also in the
UI. The primary concern there, however, was screen reader users
getting duplicate announcements. However, I believe the title
attribute is not announced by screen readers, which this (old)
article seems to confirm:
https://developer.paciellogroup.com/blog/2010/11/using-the-html-title-attribute/

That leaves the following two disadvantages:
- This doesn't solve anything for mobile users, who will still
  have to follow the link to see the full title.
- Desktop users can however a (non-truncated) title to see the same
  title again.
2019-10-23 21:54:57 -07:00
Nolan Lawson 2b63afd4bb 1.15.2 2019-10-23 20:58:14 -07:00
Nolan Lawson c174c19ddd
fix: fix tesseract.js progress bar (#1599)
* fix: fix tesseract.js progress bar

* fixup
2019-10-23 18:07:24 -07:00
Nolan Lawson 2a248cb482
fix: update tesseract to the latest version (#1596)
* chore: update tesseract to the latest version

* fix stuff

* fix delay

* fix caching, fixes #1457
2019-10-22 20:45:30 -07:00
Nolan Lawson 1d257ed92e 1.15.1 2019-10-18 19:17:55 -07:00
Nolan Lawson 3bc6e3d777
fix: only do range request override in Safari (#1594)
should fix #1590
2019-10-18 19:03:04 -07:00
Nolan Lawson 01b0c43f0d
fix: remove type="*" from videos (#1593) 2019-10-17 18:27:30 -07:00
Nolan Lawson c13b2df6c5
fix: fix duplicate accounts in replies in Pleroma (#1592)
fixes #1591
2019-10-16 18:09:19 -07:00
Nolan Lawson 107ad3727b
chore: update chokidar (#1588) 2019-10-16 07:07:53 -07:00
Nolan Lawson 1e7c3b4e96
chore: update custom elements (#1587) 2019-10-15 20:34:30 -07:00
Nolan Lawson 3e6e39b81e
chore: update webpack-bundle-analyzer (#1586) 2019-10-15 20:11:20 -07:00
Nolan Lawson d663dd7fe8
fix: fix wasted space in options dialog (#1585)
fixes #1487
2019-10-15 19:35:00 -07:00
Nolan Lawson 2aa0fb505e
chore: update dev deps (#1581) 2019-10-15 18:38:12 -07:00
Nolan Lawson af711d242a
chore: update babel (#1580) 2019-10-15 18:38:07 -07:00
Nolan Lawson 08d1b6b6b5
chore: update webpack (#1584) 2019-10-15 17:27:46 -07:00
Nolan Lawson 90b8f82283
chore: update some deps (#1583) 2019-10-15 17:27:41 -07:00
Nolan Lawson 46b44feb35
chore: update svelte-loader (#1582) 2019-10-15 17:27:36 -07:00
Nolan Lawson 430385457b
chore: update chokidar (#1579) 2019-10-15 17:27:31 -07:00
Nolan Lawson 88e2c2fdc3
chore: update terser plugins (#1578) 2019-10-15 17:27:21 -07:00
Nolan Lawson 87cb8a7b81
chore: update rollup (#1577) 2019-10-15 17:27:13 -07:00
Nolan Lawson 67b71231d3
fix: use short usernames in options dialog (#1576) 2019-10-15 07:56:39 -07:00
Nolan Lawson ac4d512363
fix: do not cache license files in service worker (#1575) 2019-10-15 06:52:27 -07:00
Nolan Lawson afb06d988e
perf: use webpack contenthash for better caching (#1573) 2019-10-14 20:00:57 -07:00
Nolan Lawson 2001e93399 1.15.0 2019-10-13 14:26:54 -07:00
Nolan Lawson 2bafaa455e
fix: tweak autosuggest error logging and resetting (#1572) 2019-10-13 13:53:48 -07:00
Nolan Lawson d580a9b7e8
fix: do not prefer lowercase for hashtags in search (#1571) 2019-10-13 10:49:39 -07:00
Nolan Lawson 4601ddb92c
chore: update preact (#1569) 2019-10-13 08:08:12 -07:00
Nolan Lawson 3209d934e8
fix: tweak autocomplete behavior (#1570)
tweak the hashtag sort algorithm
fix issue where wrong results shown when offline or on slow network
refactor RequestThrottler
2019-10-13 08:08:06 -07:00
Nolan Lawson 89265f709e
fix: combine request throttling logic (#1568) 2019-10-12 21:08:08 -07:00