Skip to content

Commit

Permalink
voiceover in "Terms and Agreement"
Browse files Browse the repository at this point in the history
close #8292
  • Loading branch information
BijinDev committed Jan 20, 2025
1 parent c12c3b1 commit a85049c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/common/misc/KeyManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { assertMainOrNodeBoot, isAppleDevice } from "../api/common/Env"
import m from "mithril"

assertMainOrNodeBoot()
export const TABBABLE = "button, input, textarea, div[contenteditable='true'], [tabindex='0']"
export const TABBABLE = "button, input, textarea, div[contenteditable='true'], [tabindex='0'], a"
export type KeyPress = {
key: string

Expand Down
2 changes: 1 addition & 1 deletion src/common/settings/PasswordForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export class PasswordForm implements Component<PasswordFormAttrs> {

private renderPasswordGeneratorHelp(attrs: PasswordFormAttrs): Children {
return m(
".b.mr-xs.hover.click.darkest-hover.mt-xs",
"button.b.mr-xs.hover.click.darkest-hover.mt-xs",
{
style: { display: "inline-block", color: theme.navigation_button_selected },
onclick: async () => {
Expand Down
8 changes: 3 additions & 5 deletions src/common/subscription/SignupForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ export class SignupForm implements Component<SignupFormAttrs> {
})
: null,
m(Checkbox, confirmTermsCheckBoxAttrs),
m("div", renderTermsAndConditionsButton(TermsSection.Terms, CURRENT_TERMS_VERSION)),
m("div", renderTermsAndConditionsButton(TermsSection.Privacy, CURRENT_PRIVACY_VERSION)),
m(Checkbox, confirmAgeCheckBoxAttrs),
],
m(
Expand Down Expand Up @@ -240,11 +242,7 @@ export class SignupForm implements Component<SignupFormAttrs> {
}

function renderTermsLabel(): Children {
return [
lang.get("termsAndConditions_label"),
m("div", renderTermsAndConditionsButton(TermsSection.Terms, CURRENT_TERMS_VERSION)),
m("div", renderTermsAndConditionsButton(TermsSection.Privacy, CURRENT_PRIVACY_VERSION)),
]
return lang.get("termsAndConditions_label")
}

/**
Expand Down

0 comments on commit a85049c

Please sign in to comment.