From c11a52d88848422716c5d082a147c92616e9a87a Mon Sep 17 00:00:00 2001 From: Neetshin Date: Wed, 20 Dec 2017 02:46:25 +0000 Subject: [PATCH] Replace to in KeyboardShortcuts component (#6049) * Add aria-autocomplete='list' in Textaria ref: https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete * Make detect empty string brefore assign upload description * Change code elements in keyboard-shortcuts component to kbd --- .../features/keyboard_shortcuts/index.js | 28 +++++++++---------- .../styles/mastodon/components.scss | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/javascript/mastodon/features/keyboard_shortcuts/index.js b/app/javascript/mastodon/features/keyboard_shortcuts/index.js index 22991fcba8..8531e03c07 100644 --- a/app/javascript/mastodon/features/keyboard_shortcuts/index.js +++ b/app/javascript/mastodon/features/keyboard_shortcuts/index.js @@ -33,59 +33,59 @@ export default class KeyboardShortcuts extends ImmutablePureComponent { - r + r - m + m - f + f - b + b - enter + enter - up + up - down + down - 1-9 + 1-9 - n + n - alt+n + alt+n - backspace + backspace - s + s - esc + esc - ? + ? diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index db07c3dfae..be1df46fc4 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -2104,7 +2104,7 @@ padding: 0 10px 8px; } - code { + kbd { display: inline-block; padding: 3px 5px; background-color: lighten($ui-base-color, 8%);