Use AccessibleButton
for "Accept" on AuthPage (#10508)
* Use AccessibleButton for "Accept" on AuthPage - Use AccessibleButton - Remove mx_InteractiveAuthEntryComponents_termsSubmit:disabled as disabled state is handled by AccessibleButton Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Empty commit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> --------- Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
This commit is contained in:
parent
6280395928
commit
747afec27e
2 changed files with 15 additions and 17 deletions
|
@ -386,20 +386,20 @@ export class TermsAuthEntry extends React.Component<ITermsAuthEntryProps, ITerms
|
|||
|
||||
let submitButton: JSX.Element | undefined;
|
||||
if (this.props.showContinue !== false) {
|
||||
// XXX: button classes
|
||||
submitButton = (
|
||||
<button
|
||||
className="mx_InteractiveAuthEntryComponents_termsSubmit mx_GeneralButton"
|
||||
<AccessibleButton
|
||||
kind="primary"
|
||||
className="mx_InteractiveAuthEntryComponents_termsSubmit"
|
||||
onClick={this.trySubmit}
|
||||
disabled={!allChecked}
|
||||
>
|
||||
{_t("Accept")}
|
||||
</button>
|
||||
</AccessibleButton>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className="mx_InteractiveAuthEntryComponents">
|
||||
<p>{_t("Please review and accept the policies of this homeserver:")}</p>
|
||||
{checkboxes}
|
||||
{errorSection}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue