From c757692a0a8d02998bfd8839c2612e17011013a7 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Wed, 24 Aug 2022 17:40:37 +0200 Subject: SONAR-16725 [891882] An icon lacks 3 to 1 contrast ratio --- .../src/main/js/apps/sessions/components/LoginForm.tsx | 13 ++++++------- .../__tests__/__snapshots__/LoginForm-test.tsx.snap | 8 ++++---- 2 files changed, 10 insertions(+), 11 deletions(-) (limited to 'server/sonar-web/src/main/js/apps/sessions') diff --git a/server/sonar-web/src/main/js/apps/sessions/components/LoginForm.tsx b/server/sonar-web/src/main/js/apps/sessions/components/LoginForm.tsx index aa137b6a5bb..c395c1f80d0 100644 --- a/server/sonar-web/src/main/js/apps/sessions/components/LoginForm.tsx +++ b/server/sonar-web/src/main/js/apps/sessions/components/LoginForm.tsx @@ -18,7 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { SubmitButton } from '../../../components/controls/buttons'; +import { ButtonLink, SubmitButton } from '../../../components/controls/buttons'; import DeferredSpinner from '../../../components/ui/DeferredSpinner'; import { translate } from '../../../helpers/l10n'; import { getBaseUrl } from '../../../helpers/system'; @@ -59,8 +59,7 @@ export default class LoginForm extends React.PureComponent { .then(this.stopLoading, this.stopLoading); }; - handleMoreOptionsClick = (event: React.MouseEvent) => { - event.preventDefault(); + handleMoreOptionsClick = () => { this.setState({ collapsed: false }); }; @@ -74,12 +73,12 @@ export default class LoginForm extends React.PureComponent { if (this.state.collapsed) { return (
- {translate('login.more_options')} - +
); } diff --git a/server/sonar-web/src/main/js/apps/sessions/components/__tests__/__snapshots__/LoginForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/sessions/components/__tests__/__snapshots__/LoginForm-test.tsx.snap index d45b1952809..3d97ba42e31 100644 --- a/server/sonar-web/src/main/js/apps/sessions/components/__tests__/__snapshots__/LoginForm-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/sessions/components/__tests__/__snapshots__/LoginForm-test.tsx.snap @@ -4,13 +4,13 @@ exports[`expands more options 1`] = `
- login.more_options - +
`; -- cgit v1.2.3