Merge pull request #25 from edx/waheed/fix-help-button

Fix need help signing in button styling.
This commit is contained in:
Waheed Ahmed
2020-11-12 17:46:57 +05:00
committed by GitHub
3 changed files with 8 additions and 15 deletions

View File

@@ -69,8 +69,7 @@ exports[`ForgotPasswordPage should match default section snapshot 1`] = `
The email address you used to register with edX.
</p>
<button
className="mt-0 field-link btn btn-primary"
disabled={false}
className="mt-1 field-link"
onClick={[Function]}
type="button"
>
@@ -220,8 +219,7 @@ exports[`ForgotPasswordPage should match forbidden section snapshot 1`] = `
The email address you used to register with edX.
</p>
<button
className="mt-0 field-link btn btn-primary"
disabled={false}
className="mt-1 field-link"
onClick={[Function]}
type="button"
>

View File

@@ -1,6 +1,5 @@
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { Button } from '@edx/paragon';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faCaretDown, faCaretRight } from '@fortawesome/free-solid-svg-icons';
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
@@ -49,11 +48,11 @@ const LoginHelpLinks = (props) => {
return (
<>
<Button className="mt-0 field-link" onClick={toggleLoginHelp}>
<button type="button" className="mt-1 field-link" onClick={toggleLoginHelp}>
<FontAwesomeIcon className="mr-1" icon={showLoginHelp ? faCaretDown : faCaretRight} />
{getHelpButtonMessage()}
</Button>
</button>
<SwitchContent
expression={showLoginHelp ? 'showHelp' : 'default'}
cases={{

View File

@@ -111,8 +111,7 @@ exports[`LoginPage should match default section snapshot 1`] = `
</div>
</div>
<button
className="mt-0 field-link btn btn-primary"
disabled={false}
className="mt-1 field-link"
onClick={[Function]}
type="button"
>
@@ -356,8 +355,7 @@ exports[`LoginPage should match forget password alert message snapshot 1`] = `
</div>
</div>
<button
className="mt-0 field-link btn btn-primary"
disabled={false}
className="mt-1 field-link"
onClick={[Function]}
type="button"
>
@@ -624,8 +622,7 @@ exports[`LoginPage should show error message on 400 1`] = `
</div>
</div>
<button
className="mt-0 field-link btn btn-primary"
disabled={false}
className="mt-1 field-link"
onClick={[Function]}
type="button"
>
@@ -900,8 +897,7 @@ exports[`LoginPage should show error message on 400 on receiving link 1`] = `
</div>
</div>
<button
className="mt-0 field-link btn btn-primary"
disabled={false}
className="mt-1 field-link"
onClick={[Function]}
type="button"
>