Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit b69ad0c

Browse files
authored
Decorate view keyboard shortcuts link as a link (#7260)
1 parent 5169bca commit b69ad0c

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

res/css/views/settings/tabs/user/_PreferencesUserSettingsTab.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ limitations under the License.
3232
margin-top: 20px;
3333
}
3434
}
35+
36+
.mx_AccessibleButton_kind_link {
37+
padding: 0;
38+
font-size: inherit;
39+
}
3540
}
3641

3742
.mx_PreferencesUserSettingsTab_CommunityMigrator {

src/components/views/settings/tabs/user/PreferencesUserSettingsTab.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,13 @@ export default class PreferencesUserSettingsTab extends React.Component<IProps,
359359

360360
<div className="mx_SettingsTab_section">
361361
<span className="mx_SettingsTab_subheading">{ _t("Keyboard shortcuts") }</span>
362-
<AccessibleButton className="mx_SettingsFlag" onClick={KeyboardShortcuts.toggleDialog}>
363-
{ _t("To view all keyboard shortcuts, click here.") }
364-
</AccessibleButton>
362+
<div className="mx_SettingsFlag">
363+
{ _t("To view all keyboard shortcuts, <a>click here</a>.", {}, {
364+
a: sub => <AccessibleButton kind="link" onClick={KeyboardShortcuts.toggleDialog}>
365+
{ sub }
366+
</AccessibleButton>,
367+
}) }
368+
</div>
365369
{ this.renderGroup(PreferencesUserSettingsTab.KEYBINDINGS_SETTINGS) }
366370
</div>
367371

src/i18n/strings/en_EN.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@
14291429
"Show my Communities": "Show my Communities",
14301430
"If a community isn't shown you may not have permission to convert it.": "If a community isn't shown you may not have permission to convert it.",
14311431
"Keyboard shortcuts": "Keyboard shortcuts",
1432-
"To view all keyboard shortcuts, click here.": "To view all keyboard shortcuts, click here.",
1432+
"To view all keyboard shortcuts, <a>click here</a>.": "To view all keyboard shortcuts, <a>click here</a>.",
14331433
"Displaying time": "Displaying time",
14341434
"Composer": "Composer",
14351435
"Code blocks": "Code blocks",

0 commit comments

Comments
 (0)