From 568a3f51fefccdbf7bbc9b9f876529273530bca7 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 17 Nov 2019 21:23:32 -0500 Subject: [PATCH] fix: convert many toggle buttons into regular buttons (#1643) work on #1633 --- src/routes/_components/IconButton.html | 42 ++++++++++++------- .../profile/AccountProfileFollow.html | 3 +- .../_components/status/StatusToolbar.html | 7 +++- tests/spec/007-account-profile.js | 4 +- tests/spec/011-reblog-favorites-count.js | 8 ++-- tests/spec/025-shortcuts-status.js | 8 ++-- tests/spec/026-shortcuts-notification.js | 8 ++-- tests/spec/100-favorite-unfavorite.js | 34 +++++++-------- tests/spec/101-reblog-unreblog.js | 36 ++++++++-------- tests/spec/106-follow-requests.js | 12 ++---- tests/spec/113-block-unblock.js | 11 +---- tests/spec/114-mute-unmute.js | 3 +- tests/spec/115-follow-unfollow.js | 6 +-- tests/spec/117-pin-unpin.js | 6 +-- tests/spec/119-status-counts-update.js | 2 +- tests/utils.js | 8 ++-- 16 files changed, 96 insertions(+), 102 deletions(-) diff --git a/src/routes/_components/IconButton.html b/src/routes/_components/IconButton.html index d1279084..995208a7 100644 --- a/src/routes/_components/IconButton.html +++ b/src/routes/_components/IconButton.html @@ -1,10 +1,12 @@ + See http://w3c.github.io/aria-practices/#button + We also have toggleButton === false which can make it just a normal button that changes its aria-label. + -->